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 2007/06/18 12:04:07 UTC
DO NOT REPLY [Bug 42686] New: - mod_rewrite converting double slashes to single slash in QUERY_STRING
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=42686>.
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=42686
Summary: mod_rewrite converting double slashes to single slash in
QUERY_STRING
Product: Apache httpd-2
Version: 2.2.4
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: ross.lawley@gmail.com
Mod_rewrite is stripping double slashes so that :
http://mysite.com/search//10
Is producing the following $_SERVER variables:
'QUERY_STRING' => '/search/10',
'REQUEST_URI' => '/search//10'
So when mapping a url to /search/search_term/results_per_page - the stripped slash means that it is
interpreted as searching for "10" and not a blank search.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42686] - Apache converting double slashes to single slash
Posted by bu...@apache.org.
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=42686>.
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=42686
------- Additional Comments From ross.lawley@gmail.com 2007-06-18 03:23 -------
Added the mod_rewrite log for the test URL: http://mysite.com/search/content//19
Which shows that the double slash is already removed from the path supplied to mod_rewrite. So it's
*not* a mod_rewrite issue!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42686] - Apache converting double slashes to single slash
Posted by bu...@apache.org.
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=42686>.
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=42686
------- Additional Comments From ross.lawley@gmail.com 2007-06-18 03:21 -------
Created an attachment (id=20363)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20363&action=view)
rewrite log - double slash already removed
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42686] - Apache converting double slashes to single slash
Posted by bu...@apache.org.
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=42686>.
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=42686
davi@haxent.com.br changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From davi@haxent.com.br 2007-06-18 03:50 -------
We must definitely review which environment variables we should canonicalize
and which we shouldn't. In the mean time, the CGI Specification for further
reference:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
*** This bug has been marked as a duplicate of 20036 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42686] - Apache converting double slashes to single slash
Posted by bu...@apache.org.
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=42686>.
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=42686
ross.lawley@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|mod_rewrite |Core
Summary|mod_rewrite converting |Apache converting double
|double slashes to single |slashes to single slash
|slash in QUERY_STRING |
------- Additional Comments From ross.lawley@gmail.com 2007-06-18 03:17 -------
Seems like it may be an Apache issue - as when calling the index.php with the PATH_INFO also strips
the slashes:
http://mysite.com/index.php/search//10
produces the following:
'QUERY_STRING' => '',
'REQUEST_URI' => '/tmp/rewrite/index.php/search//10',
'SCRIPT_NAME' => '/tmp/rewrite/index.php',
'PATH_INFO' => '/search/10',
'PHP_SELF' => '/tmp/rewrite/index.php/search//10'
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org