Re: Границы слов в regexps

Victor Porton porton at narod.ru
Mon Sep 14 22:42:26 MSD 2009


Итак, есть баг nginx-0.7.61_1 с pcre-7.9 в FreeBSD 7.0.

Вот test.html:

<!--#if expr="$QUERY_STRING = /city/" -->
  Test 1 passed.
<!--#else -->
  Test 1 failed (nginx bug?).
<!--#endif -->
<!--#if expr="$QUERY_STRING = /\bcity\b/" -->
  Test 2 passed.
<!--#else -->
  Test 2 failed (nginx bug?).
<!--#endif -->

Запрос на http://www.logostudio.co.il/test.html?city
выдает "Test 1 passed. Test 2 failed (nginx bug?)."
В debug log ничего нет.

Я проверил еще на nginx-0.6.34-2 на Debian Linux - в этой версии бага нет.





More information about the nginx-ru mailing list