[pmwiki-devel] UpdatePage and HandleEdit

Dominique Faure dominique.faure at gmail.com
Tue Dec 12 04:54:08 CST 2006


On 12/12/06, Hans <design5 at softflow.co.uk> wrote:
> Tuesday, December 12, 2006, 10:02:30 AM, Dominique wrote:
>
> > but why not try to call HandleEdit yourself?
>
> well I tried that, and it just saves the new page, including the
> template text, instead of opening in 'edit'.
>
>
Have you "cleaned" POST parameters before calling HandleEdit?

pmwiki.php(1557):

  $EnablePost &= preg_grep('/^post/', array_keys(@$_POST));
  UpdatePage($pagename, $page, $new);



More information about the pmwiki-devel mailing list