From: Alan T. DeKok Date: Mon, 18 Jan 2016 20:09:38 +0000 (-0500) Subject: Don't regex-escape the LHS of a regex comparison. X-Git-Tag: release_3_0_11~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fee84ee3b5f11da7ace5bf720d06adcf583122;p=thirdparty%2Ffreeradius-server.git Don't regex-escape the LHS of a regex comparison. We're not making the regex from it --- diff --git a/src/main/evaluate.c b/src/main/evaluate.c index 667d0d963a1..64be4966a45 100644 --- a/src/main/evaluate.c +++ b/src/main/evaluate.c @@ -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;