summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-24 12:51:02 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-24 12:51:02 +0100
commit1b7343b93c5f6956fc0c8623045639b037643e0e (patch)
tree862fca24db0620c94713f0278b040904a944fbef
parentc6cf354a9acd3d79f3b9fbf08c85aff4c7433bd3 (diff)
parent6d57476fd76089be48754ec440150161fcd76a5c (diff)
downloadphp-git-1b7343b93c5f6956fc0c8623045639b037643e0e.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: 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 fa5637c17b..622964ded6 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -5380,7 +5380,7 @@ state_2:
break;
case '"':
case '\'':
- if (*(p-1) != '\\') {
+ if (p >= buf + 1 && *(p-1) != '\\') {
if (lc == c) {
lc = '\0';
} else if (lc != '\\') {