httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Word boundaries in regexps (Apache bug?)
Date Tue, 15 Sep 2009 13:16:27 GMT
Torsten Foertsch wrote:
> Привет,
> 
> On Tue 15 Sep 2009, Victor Porton wrote:
>>> <!--#if expr="$QUERY_STRING = /(^|\b)city(\b|$)/" -->
>> After this change the test 2 passes, but it does not pass if I enter
>> http://localhost/test2.shtml?city=2
> 
> Perhaps you have to outwit the SSI string parser. Just a guess:
> 
>   <!--#if expr="$QUERY_STRING = /\\bcity\\b/" -->
> 
Yep, my bet would be on that one too right now.

If not, (but admittedly we can keep going on like this) :

<!--#if expr="$QUERY_STRING = /(^|\b)city(\b|$|=)/" -->

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message