On Wed, May 02, 2007 at 07:57:05PM +0100, Hans wrote:
> Can you tell why the following is also working:
>
> "<form action='{\$PageUrl}' method='post' ". " ...."
>
> It displays the right page url. But in the HTML it reads
>
> <form action='{$PageUrl}' method='post' >
>
> which looks a bit dodgy.
It is dodgy. What happens is the browser will replace the last
component of the url with a literal '{$PageUrl}'. So, if the
form is being generated from
http://www.example.com/wiki/Fox/XYZ
then the browser will submit the form to something like
http://www.example.com/wiki/Fox/%7b%24PageUrl%7d
What happens after that depends on the webserver config.
If it gets all the way to PmWiki that way, then PmWiki
will probably treat it as an invalid pagename, or
just strip it down to the group home page.
Pm
_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel