https://issues.apache.org/bugzilla/show_bug.cgi?id=49746
Summary: mod_rewrite urlencode option
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
I suggest adding a flag to mod_rewrite to optionally url-encode captured
values.
Something like:
RewriteRule /(.*)
/some/other/url=&target=http://www.example.com/handler?foo=bar&target=$1&zed=zee
[UE]
where UE causes the (.*) value to be urlencoded before being placed into $1.
This handles cases where you want to rewrite the request url into an argument
of another url, and the requested url might have a multivalue query string in
it.
Example:
http://www.example.com/foo/?bar=zed&foo=zee
becomes
http://www.example.com/handler?foo=bar&target=%2Ffoo%2F%3Fbar%3Dzed%26foo%3Dzee&zed=zee
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]