[pmwiki-users] New recipe: Fox

marc gmane at auxbuss.com
Sun Dec 17 13:22:13 CST 2006


Hans said...
> Sunday, December 17, 2006, 5:09:57 PM, marc wrote:
> 
> > It seems that UpdatePage in FoxUpdatePage returns different results. I
> > know UpdatePage doesn't check update permissions, but I don't know what
> > it does if you don't have them and proceed. 
> 
> > I also spotted that UpdatePage isn't incrementing the rev #. Maybe 
> > that's as designed, but I would have expected it to.
> 
> FoxUpdatePage is a function in which UpdatePage is called, or, if
> newedit is used as name for an input text box, then FoxUpdatePage loads
> the new page in edit mode instead of saving it via UpdatePage.

Yes, I know. What I'm saying is that UpdatePage in FoxUpdatePage returns 
different results depending on whether a user is logged in or not. In 
other words, UpdatePage is not writing the page when not logged in. In 
all other cases the comment is successfully written.

I checked for identical input, and - disregarding timestamps - the input 
from both sources is/was identical - $targetname, $oldpage and $newpage. 
On return, $newpage is different - since in one case the page is not 
being written. So the only difference would appear to be whether the 
user is logged in or not - and this is consistent.

> It saves fine on my Windows machine, both for logged in users and
> others. But you need to supply an author name in the author box, even
> if you can't log in.

Yes, I am supplying author names.
 
> I have posted a new update fox.php script, mending a bug which
> prevented the delete link working properly all the time.

I tried this, but it still doesn't post when the user is not logged in. 
I also tried fox.php on a clean install - so no authuser, etc. - and 
comments were not posted.

Btw, I also see the 'delete' buttons when the user is not logged in.

-- 
Best,
Marc





More information about the pmwiki-users mailing list