From 1952d7c844c6fd2e4bb1b611d2827d00d600eb11 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 15 Jan 2015 14:50:07 +0100 Subject: [PATCH] Disallow spaces in T_STRING_ANGLE fixes #8230 --- lib/config/config_lexer.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config_lexer.ll b/lib/config/config_lexer.ll index 2ed238911..e0092aee3 100644 --- a/lib/config/config_lexer.ll +++ b/lib/config/config_lexer.ll @@ -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; } -- 2.40.0