MDL-67030 htmlpurifier: php74 fixup for htmlpurifier v4.10.0

This simply applies this pull request:

https://github.com/ezyang/htmlpurifier/pull/224

straight to our library. Once there is some new htmlpurifier
release available (>v4.11.0) we'll be back upstream because
the fix will be included.
This commit is contained in:
Eloy Lafuente (stronk7)
2019-11-21 08:19:11 +08:00
committed by Jake Dallimore
parent 7cec76396f
commit 51bedcee13
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class HTMLPurifier_Encoder
$len = strlen($str);
for ($i = 0; $i < $len; $i++) {
$in = ord($str{$i});
$in = ord($str[$i]);
$char .= $str[$i]; // append byte to char
if (0 == $mState) {
// When mState is zero we expect either a US-ASCII character