summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-24 12:45:04 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-24 13:02:02 +0100
commit372b678e563680bd86207777ae293a40624ec962 (patch)
treeec3ed52faa6f0802c965c4b55c4fa2165f11b3a8
parent2c2cbbbf55f82026655d4477e00a938200fdf79a (diff)
downloadphp-git-372b678e563680bd86207777ae293a40624ec962.tar.gz
Yet another check for php_strip_tags_ex()
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index f443519a72..38180106d5 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -5266,7 +5266,7 @@ state_2:
break;
case '"':
case '\'':
- if (*(p-1) != '\\') {
+ if (p >= buf + 1 && *(p-1) != '\\') {
if (lc == c) {
lc = '\0';
} else if (lc != '\\') {