mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
feat: PHP 8.4 support (#441)
This commit is contained in:
@@ -25,12 +25,7 @@ class HTMLPurifier_AttrDef_HTML_LinkTypes extends HTMLPurifier_AttrDef
|
||||
'rev' => 'AllowedRev'
|
||||
);
|
||||
if (!isset($configLookup[$name])) {
|
||||
trigger_error(
|
||||
'Unrecognized attribute name for link ' .
|
||||
'relationship.',
|
||||
E_USER_ERROR
|
||||
);
|
||||
return;
|
||||
throw new Exception('Unrecognized attribute name for link relationship.');
|
||||
}
|
||||
$this->name = $configLookup[$name];
|
||||
}
|
||||
|
Reference in New Issue
Block a user