You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/04/02 20:54:21 UTC

DO NOT REPLY [Bug 23295] - Escape problem in mod_rewrite [P] action...

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