aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.l
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-22 18:15:43 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-22 18:15:43 +0400
commitbf47a84713c6705326b0eb02e9fab7a061f86695 (patch)
treecc15a83bc7b008b00b9254cb5cdac2e1c2987220 /src/cfg_file.l
parent4528dcf3cfb7ed8ea265bf740757d8813d14f515 (diff)
downloadrspamd-bf47a84713c6705326b0eb02e9fab7a061f86695.tar.gz
rspamd-bf47a84713c6705326b0eb02e9fab7a061f86695.zip
* Fix variables substitution
Diffstat (limited to 'src/cfg_file.l')
-rw-r--r--src/cfg_file.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg_file.l b/src/cfg_file.l
index 77eeca0a9..ebabd3e0a 100644
--- a/src/cfg_file.l
+++ b/src/cfg_file.l
@@ -154,8 +154,8 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG;
<module>\} BEGIN(INITIAL); return EBRACE;
<module>\; return SEMICOLON;
<module>= return EQSIGN;
-<module>[a-zA-Z0-9_%-]+ yylval.string=strdup(yytext); return PARAM;
<module>\$[a-zA-Z_][a-zA-Z0-9_]+ yylval.string=strdup(yytext + 1); return VARIABLE;
+<module>[a-zA-Z0-9_%-]+ yylval.string=strdup(yytext); return PARAM;
<module>\".+[^\\]\" yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; unescape_quotes(yylval.string); return QUOTEDSTRING;
<lua>\n /* ignore EOL */;