httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34602] - mod_rewrite fails to correctly deal with URLS that have escapes in them
Date Fri, 18 Nov 2005 14:47:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34602>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34602





------- Additional Comments From michael.sinz@sinz.org  2005-11-18 15:47 -------
(In reply to comment #7)
> (In reply to comment #6)
> > RewriteRule	^redirect/(.*)$	"/rewrite-test/test.cgi/$1"	[R,L]
> > 
> > Given that all I do is take part of the URL and change it, this should
> > be the correct way of handling it.
> 
[...]
> I'm trying to avoid this being a me-too report, so here is a thoroughly
> unpleasant workaround: if you double-urlencode the incoming parameter,
> you end up with the string you were expecting in the output 
> pattern. Here's what I want to be passing in:
[...]

It is unacceptable to try to double-URL encode the input as the input is
the valid public URL that a web browser may request.  So how do I cause
the input to be double encoded?  And how do I deal with the strange
side-effects of that in the CGI scripts?  (And what of when the data
itself has to be URL encoded but the script is called directly?)

Anyway, to me this seems like a significant problem.  My workaround is
rather nasty (see the Insurrection project) and requires some tricks
in both the rewrite rule and the way the CGI parameters are processed
(and thus reprocessed after applying the fixup code)

A very ugly workaround that does not really cover the general case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message