summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_lexer.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2016-11-13 12:55:35 +0100
committerBob Weinand <bobwei9@hotmail.com>2016-11-13 13:22:06 +0100
commitba75d4c50b973f6b85e8d6abab79d8c3aee2737a (patch)
tree732aeaa5e3d064f33c28a066208ef7d6fe8ef7c4 /sapi/phpdbg/phpdbg_lexer.c
parent57c0773cd7aac0684044c65f7722cf53703bf81d (diff)
downloadphp-git-ba75d4c50b973f6b85e8d6abab79d8c3aee2737a.tar.gz
Properly escape all filenames when exporting breakpoints
Diffstat (limited to 'sapi/phpdbg/phpdbg_lexer.c')
-rw-r--r--sapi/phpdbg/phpdbg_lexer.c2
1 files changed, 1 insertions, 1 deletions
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;
}