httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47393] New: RewriteRule changes part of the Query String to lowercase
Date Fri, 19 Jun 2009 08:41:09 GMT

           Summary: RewriteRule changes part of the Query String to
           Product: Apache httpd-1.3
           Version: 1.3.41
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite

Using RewriteRule to convert a REQUEST_URI to a QUERY_STRING, the first
directory part of the REQUEST_URI is changed to lowercase.

This is reproducible on the Win32 version of Apache 1.3.x but doesn't appear on
the same version running on Linux.

To reproduce this, create a folder named "test" containing .htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [L]

In this instance PHP is only used to print out the $_SERVER variables, I don't
believe PHP is causing this behaviour.

Given an example url such as: /test/CASE/Sensitive/Url

[REDIRECT_QUERY_STRING] => url=case/Sensitive/Url
[REDIRECT_URL] => /test/CASE/Sensitive/Url
[QUERY_STRING] => url=case/Sensitive/Url
[REQUEST_URI] => /test/CASE/Sensitive/Url

Notice that the Apache variables QUERY_STRING and REDIRECT_QUERY_STRING have
had "CASE" changed to lowercase.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message