From ba75d4c50b973f6b85e8d6abab79d8c3aee2737a Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sun, 13 Nov 2016 12:55:35 +0100 Subject: Properly escape all filenames when exporting breakpoints --- sapi/phpdbg/phpdbg_lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_lexer.c') diff --git a/sapi/phpdbg/phpdbg_lexer.c b/sapi/phpdbg/phpdbg_lexer.c index d93c66f94d..74cad5b8f2 100644 --- a/sapi/phpdbg/phpdbg_lexer.c +++ b/sapi/phpdbg/phpdbg_lexer.c @@ -534,7 +534,7 @@ yy39: #line 161 "sapi/phpdbg/phpdbg_lexer.l" { phpdbg_init_param(yylval, STR_PARAM); - yylval->str = estrndup(yytext + (*yytext == '\'' || *yytext == '\"'), yyleng - unescape_string(yytext)); + yylval->str = estrndup(yytext, yyleng - unescape_string(yytext)); yylval->len = yyleng; return T_ID; } -- cgit v1.2.1