httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46165] New: Slash in URL causes endless loop
Date Fri, 07 Nov 2008 11:09:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46165

           Summary: Slash in URL causes endless loop
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: michael.moench@web.de


Hi, I'm using the following rule:
RewriteRule ^([0-9]+_[^\-]+)\-([^\-]+).*\.html$ $1.html?tag=$2 [N]

An URL like "1_a-a/1_a-a.html" is correctly rewritten to "1_a.html?tag=a/1_a"
and I would expect that the rewriter quits after this because the new URL does
not match the Rewrite-Rule but it does not. The rewriter gets stuck in an
endless loop and starts eating up memory:

rewrite '1_a-a/1_a-a.html' -> '1_a.html?tag=a/1_a'
rewrite '1_a.html/1_a-a.html' -> '1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a-a.html' -> '1_a.html/1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a.html/1_a-a.html' ->
'1_a.html/1_a.html/1_a.html/1_a.html?tag=a'
rewrite '1_a.html/1_a.html/1_a.html/1_a.html/1_a-a.html' ->
'1_a.html/1_a.html/1_a.html/1_a.html/1_a.html?tag=a'
(...)


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


Mime
View raw message