From: phcoder Date: Mon, 15 Jun 2009 21:06:58 +0000 (+0000) Subject: 2009-06-15 Vladimir Serbinenko X-Git-Tag: 1.98~797 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15a0c03ead7144c5bbc78e5399d7f34387330206;p=thirdparty%2Fgrub.git 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 --- 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;