httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48351] Ampersand taken to mean "what is matched by the previous regex" - unexpected given the "perl color" of regexes
Date Sat, 12 Dec 2009 20:29:43 GMT

--- Comment #1 from Stefan Fritsch <> 2009-12-12 12:29:42 UTC ---
This is an undocmented special case in ap_pregsub: & is an alias for $0.
mod_rewrite doesn't implement the same special behaviour.

I therefore agree that this is surprising and should be dropped. And
introducing $& as alias for $0 is a good idea, too, because people may expect
that from perl.
Making this change in 2.4 should be no problem as long as it is documented

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