]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't regex-escape the LHS of a regex comparison.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Jan 2016 20:09:38 +0000 (15:09 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Jan 2016 20:10:01 +0000 (15:10 -0500)
We're not making the regex from it

src/main/evaluate.c

index 667d0d963a1a438f7635002299ae5ae470ed07c1..64be4966a45b1efc4b7052b3a2cb0b05fd767c3b 100644 (file)
@@ -684,13 +684,8 @@ int radius_evaluate_map(REQUEST *request, UNUSED int modreturn, UNUSED int depth
 
                if (map->lhs->type != TMPL_TYPE_LITERAL) {
                        char *p;
-                       xlat_escape_t escape = NULL;
 
-                       if (map->op == T_OP_REG_EQ) {
-                               escape = regex_escape;
-                       }
-
-                       ret = tmpl_aexpand(request, &p, request, map->lhs, escape, NULL);
+                       ret = tmpl_aexpand(request, &p, request, map->lhs, NULL, NULL);
                        if (ret < 0) {
                                EVAL_DEBUG("FAIL [%i]", __LINE__);
                                return ret;