File indexing completed on 2024-12-22 05:36:20

0001 <?php
0002 
0003 class HTMLPurifier_URIFilter_DisableResources extends HTMLPurifier_URIFilter
0004 {
0005     /**
0006      * @type string
0007      */
0008     public $name = 'DisableResources';
0009 
0010     /**
0011      * @param HTMLPurifier_URI $uri
0012      * @param HTMLPurifier_Config $config
0013      * @param HTMLPurifier_Context $context
0014      * @return bool
0015      */
0016     public function filter(&$uri, $config, $context)
0017     {
0018         return !$context->get('EmbeddedURI', true);
0019     }
0020 }
0021 
0022 // vim: et sw=4 sts=4