[Pmwiki-users] PHP 5.0: sessionauth.php broken

Hochstrasser Benedikt bhoc
Thu Aug 26 17:23:25 CDT 2004


I just installed pmwiki on a php 5.0x system. Looks as if the new php
version is pickier re certain coding <cough> flaws.

The offending line in sessionauth.php was

  foreach(array_merge($DefaultPasswords['admin'], $passwd) as $pw)

and after I changed it to

  foreach(array_merge((array)$DefaultPasswords['admin'],(array)$passwd)
as $pw)

it worked just fine.

Apart from that I didn't find any anomalies.

One question: is there a cheap way to make the page lookup
case-insensitive? I know that "Main.IndexPage" is different from
"Main.IndExpage", but sometimes it's annoying to get a page error for a
typo.

-- 
Ben



More information about the pmwiki-users mailing list