https://issues.apache.org/bugzilla/show_bug.cgi?id=46268
Summary: Local back-reference (\1) in RewriteCond pattern does
not work
Product: Apache httpd-1.3
Version: 1.3.41
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Here is an example:
RewriteCond a-a ^(a)-\1
RewriteRule xxx /yyyyy [R]
Enter http://example.com/xxx - you see than there is no redirect:
RewriteCond: input='a-a' pattern='^(a)-\1' => not-matched
I have dug the source code, but I cannot understand why bundled regex library
(src/regex) does not process \1 correctly. It is POSIX 1003.2 compatible, and I
tested \1 in Apache on FreeBSD and even Windows with no success. By the way,
"egrep '(a)-\1'" works fine in these OSes.
Also note the last message in the thread:
http://www.webmasterworld.com/forum92/3747.htm
P.S.
I am talking about Apache 1.3 which uses POSIX regex library (alpha3.4 release,
Thu Mar 17 23:17:18 EST 1994). In Apache 2.2 \1 works fine, because it uses
PCRE. But - is it a way to force \1 to work in 1.3?
--
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]