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-16 20:03:18 +01:00
parent d547735f2f
commit 9fbe33a6a2
3 changed files with 3 additions and 3 deletions
@@ -45,7 +45,7 @@ class HTMLPurifier_ChildDef_Custom extends HTMLPurifier_ChildDef
protected function _compileRegex()
{
$raw = str_replace(' ', '', $this->dtd_regex);
if ($raw{0} != '(') {
if ($raw[0] != '(') {
$raw = "($raw)";
}
$el = '[#a-zA-Z0-9_.-]+';