httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49746] mod_rewrite urlencode option
Date Wed, 25 Aug 2010 17:34:34 GMT

Jason Martin <> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #6 from Jason Martin <> 2010-08-25 13:34:31 EDT ---
I'm sorry, have to reopen again.  Neither int:escape or [B] handle the case
where the original request had a query string, and I now want to package up the
entire original request and pass it in the query string.


/foo/bar?zed=zee&ivy=true  Should be come
/some/other/url?target=/foo/bar%3Fzed=zee%26ivy=true, or something along those

With the current mechanisms, the & in the query string is not escaped by either
int:escape or [B] (as there is no way to backreference query_string), meaning
the servlet thinks everything after the first name/value pair is a separate
argument and not part of target.

RewriteMap escape int:escape
RewriteRule /(.*)

(2) init rewrite engine with requested uri /foo/bar
(3) applying pattern '/(.*)' to uri '/foo/bar'
(5) escaping backreference 'foo/bar' to 'foo%2fbar'
(5) map lookup OK: map=escape key=zed=zee&ivy=true -> val=zed=zee&ivy=true
(2) rewrite '/foo/bar' ->
(3) split
-> uri=/some/url,
(2) forcing '/some/url' to get passed through to next API URI-to-filename

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message