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 2004/10/28 20:40:54 UTC

DO NOT REPLY [Bug 31943] New: - hex coded slash character not recognized by mod_rewrite

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31943>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31943

hex coded slash character not recognized by mod_rewrite

           Summary: hex coded slash character not recognized by mod_rewrite
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: PC
               URL: http://rd.dlese.org////%2F///*http://www.google.com
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: peterb@ucar.edu


I'm utterly stumped by a mod_rewrite problem I'm having.  It's present in
both Apache 1.3.26 and 2.0.48.

Our library site presents many external links not as
        http://www.google.com
but as something like
        http://rd.dlese.org////*http://www.google.com
so we can log when someone is clicking through to one of the sites we
feature.

Further, this happens regardless of whether '*' or some other string is used as 
the delimiter of the target rewriting.
My problem is that while the following link works:
        http://rd.dlese.org//////*http://www.google.com
this one does not when a slash ('/') character is hex-coded as %2F
        http://rd.dlese.org//%2F///*http://www.google.com
and that can happen if the search term used by end user included a "/" character
(e.g if you go www.dlese.org and search on "Glossary/Plate Tectonics", then 
you'll
hit this bug -- although this is may be browser-dependent).

The simplified rewrite code is:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteLog /tmp/rewrite.log
    RewriteLoglevel 3

    RewriteRule    \*(.*)$                      $1 [R]
    </IfModule>


What I find particulary bizarre is that when the URL includes %2F, then
there's nothing in the rewrite log, as if the module isn't even used.

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