diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-24 12:45:04 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-24 13:02:02 +0100 |
commit | 372b678e563680bd86207777ae293a40624ec962 (patch) | |
tree | ec3ed52faa6f0802c965c4b55c4fa2165f11b3a8 | |
parent | 2c2cbbbf55f82026655d4477e00a938200fdf79a (diff) | |
download | php-git-372b678e563680bd86207777ae293a40624ec962.tar.gz |
Yet another check for php_strip_tags_ex()
-rw-r--r-- | ext/standard/string.c | 2 |
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 != '\\') { |