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 48687] New: mod_rewrite ignores trailing dot in request URI on Windows platform
Date Fri, 05 Feb 2010 20:24:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48687

           Summary: mod_rewrite ignores trailing dot in request URI on
                    Windows platform
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chris@beckr.org


Created an attachment (id=24932)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24932)
mod_rewrite log

When the request URI contains a trailing dot, e.g.
"http://localhost/items/Apple_Inc.", mod_rewrite will not see the dot and treat
the URI as "http://localhost/items/Apple_Inc".

Given the above request URI and the following mod_rewrite configuration via
.htaccess, the resulting redirect URL is
"http://localhost/detail.html?item=Apple_Inc", i.e. the trailing dot is lost:

 RewriteEngine on
 RewriteRule ^items/(.*)$ /detail.html?item=$1 [R=301,L,QSA]

This was verified on a blank installation of the non-SSL 2.2.14 Windows
distribution. Conversely, when the same version is built from source on Ubuntu
Linux, the redirection works as intended.

Attached is a corresponding log of the above request with RewriteLogLevel 9.
The problem also appears for series of dots. If dots are followed by a
non-alphanumeric character such as a forward slash, the dots disappear and only
the slash prevails. If dots are followed by an alphanumeric character, they
remain.

-- 
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