> The HTTP/1.1 spec says that anything sent as a location header must be an
> absolute URI. Apache will sometimes segfault if you don't.
>
> If a specific redirect() function were to be implemented, would it be
worth
> examining the URL passed into the function to see if it is absolute (e.g.
if
> it contains '://') and if it isn't, making it absolute by adding
> $_SEVER['HTTP_HOST']?

What's stoping people to write userspace function using header('HTTP/1.0 xxx
...') and header('Location: ...')?

Edin


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to