ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Adds rel="noreferrer" to any links which target a different window than the current one. More...
Public Member Functions | |
transform ($attr, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_AttrTransform | |
transform ($attr, $config, $context) | |
Abstract: makes changes to the attributes dependent on multiple values. More... | |
prependCSS (&$attr, $css) | |
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. More... | |
confiscateAttr (&$attr, $key) | |
Retrieves and removes an attribute. More... | |
Adds rel="noreferrer" to any links which target a different window than the current one.
This is used to prevent malicious websites from silently replacing the original window, which could be used to do phishing. This transform is controlled by HTML.TargetNoreferrer.
Definition at line 12 of file TargetNoreferrer.php.
HTMLPurifier_AttrTransform_TargetNoreferrer::transform | ( | $attr, | |
$config, | |||
$context | |||
) |
array | $attr | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Definition at line 20 of file TargetNoreferrer.php.