httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46268] New: Local back-reference (\1) in RewriteCond pattern does not work
Date Sat, 22 Nov 2008 22:05:59 GMT

           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

Here is an example:

RewriteCond a-a ^(a)-\1
RewriteRule xxx /yyyyy [R]

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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message