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] New: - Escape probleme in mod_rewrite [P] action...
Date Sat, 20 Sep 2003 18:51:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.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://nagoya.apache.org/bugzilla/show_bug.cgi?id=23295

Escape probleme in mod_rewrite [P] action...

           Summary: Escape probleme in mod_rewrite [P] action...
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: benoit-apache@pub.devijver.org


In my frontend apache, I use a .htaccess like this one:
------------------------------------------------
RewriteEngine on
RewriteRule (.*) http://backend/somedir/$1 [P]
------------------------------------------------

but for certain request like this one:
http://frontend/the%20url/pic.jpg
I got a 404 error "http://frontend/the" not found
(because frontend don't escape the request before asking the backend...

I don't know if the fix should be added to mod_rewrite or to mod_proxy...
but I fix like this:

/usr/local/src/httpd-2.0.47/modules/mappers # diff mod_rewrite.c.dist 
mod_rewrite.c
2165a2166
>       r->filename = ap_escape_uri(r->pool, r->filename);

Regards, Benoit DEVIJVER
(perhaps is there a way to do it in the .htaccess, but I didn't find...)

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


Mime
View raw message