File indexing completed on 2024-12-22 05:36:20
0001 <?php 0002 0003 class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal 0004 { 0005 /** 0006 * @type string 0007 */ 0008 public $name = 'DisableExternalResources'; 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 if (!$context->get('EmbeddedURI', true)) { 0019 return true; 0020 } 0021 return parent::filter($uri, $config, $context); 0022 } 0023 } 0024 0025 // vim: et sw=4 sts=4