2012-01-23
JohannStudanski
In 'search_universal' there is a check "if($item['id'] != cleanID($item['id'])" (search.php:536) .
But since "$item['id'] = pathID($file,($type == 'd' || $opts['keeptxt']));", and pathID (search.php:493) DOESN'T lowercase names, while cleanID (pageutils.php:97) does, any namespace folder containing uppercase letters will get rejected.
Maybe this is intended behaviour, but if so, in my opinion it should be rethought. Being able to make namespaces more readable by e.g. CamelCasing them is – IMHO – very important.
For me, it would even be okay to lowercase the arguments in BOTH cases, so namespace differentiation wouldn't be case sensitive, but at least CamelCased dir names would *work*…
This came up, for me, with the link wizard (Internal Link button) not displaying/being able to find documents in a CamelCased namespace.