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 20:52:07 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 rjf@cs.rice.edu  2005-03-08 21:52 -------
Regarding unescaped slashes --  The std. says that in a character set, 
e.g. [abc/def], escapes are not needed.    Anyway, in response to the
suggestion, I changed the offending expression (clipped from the 
source file this time) as shown here.

<!--#if expr=" $pg_contents_path = /[^\/]+\/[^\/]+\/[^\/]+/[^\/]+/ " -->
   <!--#set var="content_backleader" value="../../../.." -->
(This continues with #elseifs for shorter versions of the pattern.)
This is the error message clipped from the error_log: 

[Tue Mar 08 14:39:57 2005] [error] [client 128.42.7.112] Invalid expression "
$pg_contents_path = /[^\\/]+\\/[^\\/]+\\/[^\\/]+/[^\\/]+/ " in file <path omitted>

As I said, something in the new release 
decided it's a good idea to escape the escapes.

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