This page documents acceptable bugs.


the page name "0"

Andy: A page id of "0" like this *0 is improperly ignored by ewiki_id() causing the index page to be shown instead, the fix is to replace the first four lines of the function with the following:

   strlen($id = @$_REQUEST["id"]) or
   strlen($id = @$_REQUEST["name"]) or
   strlen($id = @$_REQUEST["page"]) or
   strlen($id = @$_REQUEST["file"]) or

milky: That's a thing I already accepted quietly with the very first version. My point is, that PHP treats the string "0" too special, and we shouldn't even attempt to fix it - as it boils down to only the page name "0" being the exception from the rule.

I would even go so far and promote this as feature! "A link of "0" always links to the FrontPage."

For PHP, I believe this was an excellent language decision in the first place, and here I'd just like to live with it.

Anyone, who really needs the page name "0" can apply Andys` fix and hope that it works well with other parts.

bottom corner