[pmwiki-users] 2 questions: NewPageBoxPlus and Forums
Hans
design at softflow.co.uk
Fri Mar 17 17:27:53 CST 2006
Friday, March 17, 2006, 7:08:34 PM, Philip wrote:
> I did
> notice something very bad with NewPageBoxPlus, though. I have it set so
> that it uses a template for the new page, and I'm using save=true so
> that it automatically saves the page without opening it for editing.
> The problem is that if you enter a page name that already exists, it
> completely overwrites the old page - even if the page has an edit
> password.
You are right. There was no check to see if the new page already
exists. I now added this line to the code, following
if (@$_REQUEST['save']) {
if(PageExists($newpage)) Redirect($newpage, $urlfmt);
I uploaded an updated newpageboxplus.php script.
Thanks for spotting this!
Best,
~Hans
More information about the pmwiki-users
mailing list