[pmwiki-users] Re: Re: stack overflow

Patrick R. Michaud pmichaud at pobox.com
Tue Dec 20 12:43:45 CST 2005


On Tue, Dec 20, 2005 at 04:36:21PM +0200, blues wrote:
> 
> i solved the "weird" problem.

Wow, excellent catch.  But see below.

> in http://www.pmwiki.org/wiki/PITS/00619 i explain in detail as follows:
> >the problem is in the redirection that follows the save process. in the  
> >function :>Redirect is present a line:
> >header('Location: $pageurl");
> >which is not correct HTTP/1.1, as noted in the php manual (see at  
> >http://www.php.net/header):
> >Note: HTTP/1.1 requires an absolute URI as argument to Location:  
> >including the scheme, hostname and absolute path.
> >...
> >please Pm, add it in next release.

PmWiki already generates an absolute uri for redirect, unless
the value of $ScriptUrl is set to not include the hostname.
By leaving $ScriptUrl at the default, or using a value of $ScriptUrl
that includes the hostname, the redirect lines will contain an
absolute uri.

Of course, this gets back to an earlier discussion about absolute versus 
relative path names in PmWiki, see http://www.pmwiki.org/wiki/PITS/00526.
When we resolve that it'll also resolve the issue in PITS #00619.

Thanks!

Pm






More information about the pmwiki-users mailing list