https://issues.apache.org/bugzilla/show_bug.cgi?id=47393
Summary: RewriteRule changes part of the Query String to
lowercase
Product: Apache httpd-1.3
Version: 1.3.41
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
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]
</IfModule>
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: 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: [email protected]
For additional commands, e-mail: [email protected]