Commit c8c8590b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check that regexps are constant strings.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3318 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f7c78aa8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment