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 23295] - Escape problem in mod_rewrite [P] action...
Date Fri, 02 Apr 2004 18:54:21 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=23295>.
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=23295

Escape problem in mod_rewrite [P] action...





------- Additional Comments From bp@thinkpink.com  2004-04-02 18:54 -------
Ignore that code.  Escaping of URL parts and query terms is happening OK.

For me, the problem was occurring when I moved a piece of text from the path to
the query string.  For example:

RewriteRule ^foo/(.*)   http://another.host.name/foo?page=$1 [qsappend,P]

In this case, $1 will not be escaped correctly for the query string: it could
still contain unescaped ampersands, question marks or equals.  To fix this, one
can easily encode $1 using an external program (or hack the source to use a
form-encoder natively, as I did.)

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


Mime
View raw message