diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | grammar/lexer.l | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ --------------------------------------------------------------------------- Version 6.3.6 [DEVEL] 2011-09-?? - added $InputRELPServerBindRuleset directive to specify rulesets for RELP +- bugfix: config parser did not support properties with dashes in them + inside property-based filters. Thanks to Gerrit Seré for reporting this. --------------------------------------------------------------------------- Version 6.3.5 [DEVEL] (rgerhards/al), 2011-09-01 - bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 diff --git a/grammar/lexer.l b/grammar/lexer.l index f7691c4a..5c8542dd 100644 --- a/grammar/lexer.l +++ b/grammar/lexer.l @@ -156,7 +156,7 @@ int fileno(FILE *stream); "module"[ \n\t]*"(" { yylval.objType = CNFOBJ_MODULE; BEGIN INOBJ; return BEGINOBJ; } "action"[ \n\t]*"(" { BEGIN INOBJ; return BEGIN_ACTION; } -^[ \t]*:\$?[a-z]+[ ]*,[ ]*!?[a-z]+[ ]*,[ ]*\".*\" { +^[ \t]*:\$?[a-z\-]+[ ]*,[ ]*!?[a-z]+[ ]*,[ ]*\".*\" { yylval.s = strdup(yytext); return PROPFILT; } ^[ \t]*[\*a-z][,\*a-z]*[0-7]*\.[,!=;\.\*a-z]+ { yylval.s = strdup(yytext); return PRIFILT; } "~" | |