]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
pass in flags, too
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Jun 2022 15:23:09 +0000 (11:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Jun 2022 12:41:45 +0000 (08:41 -0400)
src/lib/unlang/xlat_expr.c

index 18f17e7d6c904d3db10410ee0c210a8df43105f0..2719e2c5aee6e643dc10c77ac3e317cb4f380fab 100644 (file)
@@ -543,7 +543,7 @@ static xlat_action_t xlat_regex_resume(TALLOC_CTX *ctx, fr_dcursor_t *out,
        fr_assert(rhs != NULL);
 
        slen = regex_compile(rctx, &preg, rhs->vb_strvalue, rhs->vb_length,
-                            NULL, true, true); /* no flags, allow subcaptures, at runtime */
+                            tmpl_regex_flags(inst->xlat->vpt), true, true); /* flags, allow subcaptures, at runtime */
        if (slen <= 0) return XLAT_ACTION_FAIL;
 
        return xlat_regex_match(ctx, request, lhs, &preg, out, inst->op);