diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-11-13 12:55:35 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-11-13 13:22:06 +0100 |
commit | ba75d4c50b973f6b85e8d6abab79d8c3aee2737a (patch) | |
tree | 732aeaa5e3d064f33c28a066208ef7d6fe8ef7c4 /sapi/phpdbg/phpdbg_utils.c | |
parent | 57c0773cd7aac0684044c65f7722cf53703bf81d (diff) | |
download | php-git-ba75d4c50b973f6b85e8d6abab79d8c3aee2737a.tar.gz |
Properly escape all filenames when exporting breakpoints
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c index 7158f3ba6c..36537cb67c 100644 --- a/sapi/phpdbg/phpdbg_utils.c +++ b/sapi/phpdbg/phpdbg_utils.c @@ -807,7 +807,7 @@ char *phpdbg_short_zval_print(zval *zv, int maxlen) /* {{{ */ break; case IS_STRING: { int i; - zend_string *str = php_addcslashes(Z_STR_P(zv), 0, "\\\"", 2); + zend_string *str = php_addcslashes(Z_STR_P(zv), 0, "\\\"\n\t\0", 5); for (i = 0; i < ZSTR_LEN(str); i++) { if (ZSTR_VAL(str)[i] < 32) { ZSTR_VAL(str)[i] = ' '; |