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: [email protected]
ReportedBy: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]