httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: Problem with RedirectMatch and '?'
Date Wed, 30 Jan 2002 22:49:03 GMT

On Wed, 30 Jan 2002, Laurent Lechelle wrote:

> Joshua Slive écrit:
>
> > Personally, I've never really understood why Redirect(Match) does
> > url encoding.  I would think it should be left to the user.
>
> I found this information in the bug database for PR7503
> (http://bugs.apache.org/index.cgi/full/7503). It says that it will be fixed
> in 2.0, a patch is available for 1.3.
>
> =====================================================
> State-Changed-Why:
> We can't just remove the escaping, because it is possible
> to redirect to a file with a space in it.  If we don't
> escape the URI, then we will redirect to an invalid URL.
> The problem is that we are escaping too much.  Currently we escape the URI
> and the QUERY_STRING.

Yes, I know, but I don't think that is valid.  I think it should be a
configuration error to redirect to an invalid URL.  We shouldn't just take
an invalid URL and try to make it valid.  We should be assuming that an
HTTP server administrator knows enough to construct well-formed URLs.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message