httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33892] - escape char ( \) in regexps in SSI exprs is automatically doubled.
Date Tue, 08 Mar 2005 21:52:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33892>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33892





------- Additional Comments From nd@perlig.de  2005-03-08 22:52 -------
Nah, seems a misunderstanding here.

For the *regex engine* you don't need to escape the slash at all. It's the
context, which insists on it (like in perl). The delimiter of the regex is a
slash (ehm, two slashes, one left, one right).

The problem, you've experienced is, that the httpd 1.3 parser actually doesn't
care about the right slash (it just drops it, if it exists) -- I've glanced over
the relevant code snippet in 1.3 ;-). The 2.x parser is way more consistent
(like the perl one) and looks for the next unescaped slash. Thatswhy all slashes
which are not meant as delimiters must be escaped - regardless of their meaning
for the regex engine.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message