]> git.ipfire.org Git - thirdparty/squid.git/commit - doc/release-notes/release-3.5.sgml
Bug 4135: Support \-escaped character in regex patterns
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Dec 2014 14:12:12 +0000 (06:12 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Dec 2014 14:12:12 +0000 (06:12 -0800)
commit61a31961e29452ce0ce607f81129b47f90f3f79d
treef9cd22c4fa4c702f5e7fdd818031dcfa8672cce1
parentf0174f5b12ac8b7f51baefffac9bea21e2a6196a
Bug 4135: Support \-escaped character in regex patterns

Squid cannot parse regex patterns as quoted strings since the pattern may
itself contain quote characters as part of the syntax.

Since we updated the squid.conf ConfigParser it is now possible to
handle regex patterns containing quoted-pair (\-escaped) characters
properly.

Add support for escaping by detecting the '\' characters as token
delimiters, and explicitly skipping the following character regardless
of whether it is a SP or not.

Escape detection is only added during parsing of regex tokens or
files listing regex patterns.
doc/release-notes/release-3.5.sgml
src/ConfigParser.cc
src/ConfigParser.h