From 15a0c03ead7144c5bbc78e5399d7f34387330206 Mon Sep 17 00:00:00 2001 From: phcoder Date: Mon, 15 Jun 2009 21:06:58 +0000 Subject: [PATCH] 2009-06-15 Vladimir Serbinenko Fix handling of string like \"hello\" and "a b" * script/sh/lexer.c (grub_script_yylex): fix parsing of quoting, escaping and newline --- script/sh/lexer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/sh/lexer.c b/script/sh/lexer.c index 47939c96d..99bd3baac 100644 --- a/script/sh/lexer.c +++ b/script/sh/lexer.c @@ -280,7 +280,9 @@ grub_script_yylex (union YYSTYPE *yylval, struct grub_parser_param *parsestate) when a special token was found. It will be recognized next time when this function is called. */ if (newstate == GRUB_PARSER_STATE_TEXT - && state->state != GRUB_PARSER_STATE_ESC) + && state->state != GRUB_PARSER_STATE_ESC + && state->state != GRUB_PARSER_STATE_QUOTE + && state->state != GRUB_PARSER_STATE_DQUOTE) { int breakout = 0;