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 2005/04/25 17:11:56 UTC

DO NOT REPLY [Bug 34602] New: - mod_rewrite fails to correctly deal with URLS that have escapes in them

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=34602>.
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=34602

           Summary: mod_rewrite fails to correctly deal with URLS that have
                    escapes in them
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: All
               URL: http://svn.sinz.com:8000/
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: michael.sinz@sinz.org


I have a simple redirect rule that looks something like this:

  RewriteCond %{QUERY_STRING} Insurrection=rss
  RewriteRule ^svn/(.*)$ /rss.cgi/$1  [R,L]

Now, the URL given is to a file which happens to have various strange characters
in it, thus the URL is very escaped.  The URL looks like:

href="/svn/example/trunk/tests/CanThisWork&amp;amp%3bInSVN%3f/test?Insurrection=rss"

and the end result is that the %3f (which is a "?") and all after it is stripped
off.  If I have the page link directly to the target of the rewrite within the
HTML, it works.

Note that things are even worse if I try to use the [P,L] (proxy) rather than
just redirect [R,L] as then other escaped characters cause problems.

I have not yet put together a full set of test cases but the following does work
in [R,L] but not in [P,L]

href="/svn/example/trunk/tests/Really%21%7E%23$%25@%5e*%28%29&amp;%20Nasty/test?Insurrection=rss"

I will put some of the test cases on the public web site at
http://svn.sinz.com:8000/ using exactly these rewrite rules.

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