PHP 8.1 지원 HTMLPurifier 패치

This commit is contained in:
kit rio
2022-05-23 14:13:41 +09:00
parent 0dbdef7543
commit a73cdef008
2 changed files with 12 additions and 10 deletions

View File

@ -4410,7 +4410,7 @@ class HTML5TreeConstructer
foreach ($token['attr'] as $attr) {
if (!$el->hasAttribute($attr['name'])) {
$el->setAttribute($attr['name'], $attr['value']);
$el->setAttribute($attr['name'], (string)$attr['value']);
}
}