Johannes Meyer e35a3dcee1 Merge pull request #4963 from Icinga/upgrade-htmlpurifier
Upgrade HTMLPurifier

(cherry picked from commit a6af6900407a75204e7ebc69ae5e49520e339554)
2022-12-13 09:33:43 +01:00

17 lines
416 B
PHP

<?php
class HTMLPurifier_AttrDef_HTML_ContentEditable extends HTMLPurifier_AttrDef
{
public function validate($string, $config, $context)
{
$allowed = array('false');
if ($config->get('HTML.Trusted')) {
$allowed = array('', 'true', 'false');
}
$enum = new HTMLPurifier_AttrDef_Enum($allowed);
return $enum->validate($string, $config, $context);
}
}