Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs
[Bug 47393] New: RewriteRule changes part of the Query String to lowercase
 

Index | Next | Previous | View Flat


bugzilla at apache

Jun 19, 2009, 1:41 AM


Views: 270
Permalink
[Bug 47393] New: RewriteRule changes part of the Query String to lowercase

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: bugs[at]httpd.apache.org
ReportedBy: bugzilla[at]mcfang.com


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: bugs-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org

Subject User Time
[Bug 47393] New: RewriteRule changes part of the Query String to lowercase bugzilla at apache Jun 19, 2009, 1:41 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.