mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
Fix handling of string like \"hello\" and "a b" * script/sh/lexer.c (grub_script_yylex): fix parsing of quoting, escaping and newline
This commit is contained in:
1 parent
f3880eaf5e
commit
15a0c03ead
1 file changed
+3
-1
+3
-1
@@ -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
|
when a special token was found. It will be recognized
|
||||||
next time when this function is called. */
|
next time when this function is called. */
|
||||||
if (newstate == GRUB_PARSER_STATE_TEXT
|
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;
|
int breakout = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user