]> err.no Git - varnish/commit
NB: FLAGDAY!
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 11:58:25 +0000 (11:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 11:58:25 +0000 (11:58 +0000)
commit384c538df5d14787e406b0bef15d4d3438d1e8c8
treee7135476588ebc2bb4b1271f3d7bf6c0632469c7
parente04e7b0da6042d053a67f537eb0f1e4f1aa30eb9
NB: FLAGDAY!

Make an executive decision, and change the regsub() replacement specifiers to
get something which is consistent and nontroubling for URL and query strings.

Since $ and & both are heavily used in query strings, we (DES & I)
have chosen to use \0 ... \9 for replacement indicators, with \0
being the "all matched text" replacement and \1...\9 replacing
with tne N'th paranthesized subexpressions.

   regsub("_barf_", "(b)(a)(r)(f)", "\0\4\3\2\\p") -> "_barffra\p_"

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2741 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_vrt_re.c
varnish-cache/bin/varnishtest/tests/c00001.vtc