From: Alan T. DeKok Date: Sun, 6 Feb 2022 22:38:09 +0000 (-0500) Subject: print trailing quote, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa0a49a8d46d49d04c5d7ec2510877b12cb80bc2;p=thirdparty%2Ffreeradius-server.git print trailing quote, too --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 1473dc995e4..8e1e80fcc9e 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -1156,7 +1156,10 @@ ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_t const *head, fr_sbuff_escape if (node->vpt->quote != T_BARE_WORD) { FR_SBUFF_IN_CHAR_RETURN(out, fr_token_quote[node->vpt->quote]); } - FR_SBUFF_IN_STRCPY_RETURN(out, node->vpt->name); + FR_SBUFF_IN_STRCPY_RETURN(out, node->vpt->name); /* @todo - escape it? */ + if (node->vpt->quote != T_BARE_WORD) { + FR_SBUFF_IN_CHAR_RETURN(out, fr_token_quote[node->vpt->quote]); + } goto done; } if (tmpl_is_xlat(node->vpt)) {