I found a bug in the userauth recipe for pmwiki. Everything worked
until I tried to password protect a page. I would enter my password but
it kept returning the password prompt to me, never accepting my
password.<br>
<br>
The problem is in userauth.php in the CheckPmWikiPassword function, there is a line that reads:<br>
<br>
$_POST['authpw'] = $page_passwd;<br>
<br>
It looks like the author was trying to pass the page password to the
PmWikiAuth function in pmwiki.php. This won't work in some environments
(namely php safe mode, which I'm running). I fixed it by changing all
references of &quot;wiki_pw&quot; to &quot;authpw&quot; in userauth.php and removed the
line above from the CheckPmWikiPassword function and all was well.<br>
<br>
This one kept me busy for a few hours! :)<br>
<br>
-Theron<br clear="all"><br>-- <br>Theron Parlin, Editor and Columnist,
<a href="mailto:tparlin@thoughtmechanics.com">tparlin@thoughtmechanics.com</a> -- Subjective Opinions on Political News
-- <a href="http://www.thoughtmechanics.com">http://www.thoughtmechanics.com</a>