]> granicus.if.org Git - icinga2/commitdiff
Disallow spaces in T_STRING_ANGLE
authorGunnar Beutner <gunnar@beutner.name>
Thu, 15 Jan 2015 13:50:07 +0000 (14:50 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 15 Jan 2015 13:50:07 +0000 (14:50 +0100)
fixes #8230

lib/config/config_lexer.ll

index 2ed23891172fa839bc3f8a62924ff9ebe7105d16..e0092aee3851d0a98346c12d978f193d656d6372 100644 (file)
@@ -215,7 +215,7 @@ in                          return T_IN;
 \|\|                           return T_LOGICAL_OR;
 [a-zA-Z_][a-zA-Z0-9\_]*                { yylval->text = strdup(yytext); return T_IDENTIFIER; }
 @[a-zA-Z_][a-zA-Z0-9\_]*       { yylval->text = strdup(yytext + 1); return T_IDENTIFIER; }
-\<[^\>]*\>                     { yytext[yyleng-1] = '\0'; yylval->text = strdup(yytext + 1); return T_STRING_ANGLE; }
+\<[^ \>]*\>                    { yytext[yyleng-1] = '\0'; yylval->text = strdup(yytext + 1); return T_STRING_ANGLE; }
 [0-9]+(\.[0-9]+)?ms            { yylval->num = strtod(yytext, NULL) / 1000; return T_NUMBER; }
 [0-9]+(\.[0-9]+)?d             { yylval->num = strtod(yytext, NULL) * 60 * 60 * 24; return T_NUMBER; }
 [0-9]+(\.[0-9]+)?h             { yylval->num = strtod(yytext, NULL) * 60 * 60; return T_NUMBER; }