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 2003/06/12 12:59:28 UTC

DO NOT REPLY [Bug 20705] New: - mod_rewrite URLencodes a matched path

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=20705>.
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=20705

mod_rewrite URLencodes a matched path

           Summary: mod_rewrite URLencodes a matched path
           Product: Apache httpd-2.0
           Version: 2.0.45
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: d.tonhofer@m-plify.com


Here's what has been observed:

We want to redirect everything to an SSL-ed site:

     RewriteEngine On
     RewriteRule ^/(.*) https://secure.host.com/$1 [L,R=301]

But now a Bugzilla URL comes your way:

     /bugzilla/token.cgi?a=cfmpw&t=fsSd%40ZkT
                                       ^
and it is rewritten (as it should)

The URL that is then used actually gives access to the SSL-ed site but
with the '%' URLencoded, i.e. the path becomes:

     /bugzilla/token.cgi?a=cfmpw&t=fsSd%2540ZkT
                                       ^^^
                                  
This causes trouble. IMHO, mod_rewrite should NOT try to URLencode path parts
that came from regexp matches.

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