[pmwiki-users] Re: Re: stack overflow

blues blues4u at supereva.it
Tue Dec 20 08:36:21 CST 2005


On Tue, 13 Dec 2005 16:05:24 +0200, Patrick R. Michaud  
<pmichaud at pobox.com> wrote:
> Please go ahead and enter this in PITS, at least  until it's
> resolved.  (And let me know if it gets resolved.)

i solved the "weird" problem.
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.
> so, modifying the line like this:
> header('Location: http://'.$_SERVER['HTTP_HOST'].$pageurl);
> the problem will disappear.probably IIS will try (failing) to resolve  
> the URL going in a stack overflow (while of course Apache will correctly  
> do it).
> please Pm, add it in next release.
> Blues December 20, 2005, at 08:25 AM
> ps. also should be added a check to see if is http:// or https://.





More information about the pmwiki-users mailing list