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 49746] New: mod_rewrite urlencode option
Date Thu, 12 Aug 2010 19:07:46 GMT
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: bugs@httpd.apache.org
        ReportedBy: jhmartin@toger.us


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message