]> err.no Git - varnish/commitdiff
Check that regexps are constant strings.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Oct 2008 18:54:07 +0000 (18:54 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Oct 2008 18:54:07 +0000 (18:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3318 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_parse.c

index cbea1dbcc12b88a178200ef83425d8b68ce14e31..648f775bea649fc54354178661bf45769b9d8413 100644 (file)
@@ -250,6 +250,7 @@ Cond_String(const struct var *vp, struct tokenlist *tl)
        switch (tl->t->tok) {
        case '~':
                vcc_NextToken(tl);
+               ExpectErr(tl, CSTR);
                p = vcc_regexp(tl, 0);
                vcc_NextToken(tl);
                Fb(tl, 1, "VRT_re_match(%s, %s)\n", vp->rname, p);