diff --git a/src/lib/unlang/call_env.c b/src/lib/unlang/call_env.c index 71df113c535c5..2805d6b685361 100644 --- a/src/lib/unlang/call_env.c +++ b/src/lib/unlang/call_env.c @@ -380,7 +380,8 @@ int call_env_parse_pair(TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rules, if (tmpl_afrom_substr(ctx, &parsed_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_strlen(cf_pair_value(to_parse))), - cf_pair_value_quote(to_parse), NULL, t_rules) < 0) { + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + t_rules) < 0) { return -1; } *(void **)out = parsed_tmpl; diff --git a/src/modules/rlm_detail/rlm_detail.c b/src/modules/rlm_detail/rlm_detail.c index dceb8bc9a748d..8966e1588f51c 100644 --- a/src/modules/rlm_detail/rlm_detail.c +++ b/src/modules/rlm_detail/rlm_detail.c @@ -420,7 +420,8 @@ static int call_env_filename_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t cons if (tmpl_afrom_substr(ctx, &parsed, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules) < 0) return -1; + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules) < 0) return -1; *(void **)out = parsed; return 0; diff --git a/src/modules/rlm_files/rlm_files.c b/src/modules/rlm_files/rlm_files.c index ac7b04fdcbcdb..f8e96ec7f41a8 100644 --- a/src/modules/rlm_files/rlm_files.c +++ b/src/modules/rlm_files/rlm_files.c @@ -662,7 +662,8 @@ static int call_env_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rule if (tmpl_afrom_substr(ctx, &files_data->key_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, t_rules) < 0) return -1; + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + t_rules) < 0) return -1; keytype = tmpl_expanded_type(files_data->key_tmpl); if (fr_htrie_hint(keytype) == FR_HTRIE_INVALID) { diff --git a/src/modules/rlm_linelog/rlm_linelog.c b/src/modules/rlm_linelog/rlm_linelog.c index 8afc73b70388d..d57de4da7aeaa 100644 --- a/src/modules/rlm_linelog/rlm_linelog.c +++ b/src/modules/rlm_linelog/rlm_linelog.c @@ -903,7 +903,8 @@ static int call_env_filename_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t cons if (tmpl_afrom_substr(ctx, &parsed, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules) < 0) return -1; + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules) < 0) return -1; *(void **)out = parsed; return 0; diff --git a/src/modules/rlm_smtp/rlm_smtp.c b/src/modules/rlm_smtp/rlm_smtp.c index cd165f6e2dc4f..c29d039f246b5 100644 --- a/src/modules/rlm_smtp/rlm_smtp.c +++ b/src/modules/rlm_smtp/rlm_smtp.c @@ -971,7 +971,8 @@ static int smtp_header_section_parse(TALLOC_CTX *ctx, call_env_parsed_head_t *ou slen = tmpl_afrom_substr(parsed_env, &parsed_tmpl, &FR_SBUFF_IN(to_parse, talloc_array_length(to_parse) - 1), - cf_pair_value_quote(cp), NULL, t_rules); + cf_pair_value_quote(cp), value_parse_rules_quoted[cf_pair_value_quote(cp)], + t_rules); talloc_free(to_parse); if (slen <= 0) { diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index 61f677744d124..0b5e2b0dea012 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -1950,7 +1950,8 @@ static int logfile_call_env_parse(TALLOC_CTX *ctx, call_env_parsed_head_t *out, if (tmpl_afrom_substr(parsed_env, &parsed_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules) < 0) { + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules) < 0) { error: call_env_parsed_free(out, parsed_env); return -1; @@ -2021,7 +2022,8 @@ static int query_call_env_parse(TALLOC_CTX *ctx, call_env_parsed_head_t *out, tm slen = tmpl_afrom_substr(parsed_env, &parsed_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules); + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules); if (slen <= 0) { cf_canonicalize_error(to_parse, slen, "Failed parsing query", cf_pair_value(to_parse)); error: @@ -2373,7 +2375,8 @@ static int call_env_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rule if (tmpl_afrom_substr(ctx, &parsed_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules) < 0) return -1; + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules) < 0) return -1; *(void **)out = parsed_tmpl; return 0; } diff --git a/src/modules/rlm_sqlippool/rlm_sqlippool.c b/src/modules/rlm_sqlippool/rlm_sqlippool.c index 23a7c6b42bb39..81a384600ec24 100644 --- a/src/modules/rlm_sqlippool/rlm_sqlippool.c +++ b/src/modules/rlm_sqlippool/rlm_sqlippool.c @@ -717,7 +717,8 @@ static int call_env_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rule if (tmpl_afrom_substr(ctx, &parsed_tmpl, &FR_SBUFF_IN(cf_pair_value(to_parse), talloc_array_length(cf_pair_value(to_parse)) - 1), - cf_pair_value_quote(to_parse), NULL, &our_rules) < 0) return -1; + cf_pair_value_quote(to_parse), value_parse_rules_quoted[cf_pair_value_quote(to_parse)], + &our_rules) < 0) return -1; *(void **)out = parsed_tmpl; return 0; }