https://bz.apache.org/bugzilla/show_bug.cgi?id=69745
Bug ID: 69745
Summary: Regression in httpd 2.4.64 for RewriteRule with
inverted pattern and RewriteCond
Product: Apache httpd-2
Version: 2.4.64
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
This RewriteRule should be skipped, but it is not skipped in httpd 2.4.64:
RewriteCond expr false
RewriteRule !^/error /error/test.html [R=303,L]
I think that the bug is here:
if (p->flags & CONDFLAG_NOTMATCH && rc <= COND_RC_MATCH) {
rc = !rc;
}
This should be "<" instead of "<=". Or write it like this: "rc ==
COND_RC_NOMATCH".
(I have not tested this bugfix yet, but I think it's pretty obvious)
--
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]