HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
Go to the documentation of this file.
00001 <?php
00002 
00003 class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal
00004 {
00005     public $name = 'DisableExternalResources';
00006     public function filter(&$uri, $config, $context) {
00007         if (!$context->get('EmbeddedURI', true)) return true;
00008         return parent::filter($uri, $config, $context);
00009     }
00010 }
00011 
00012 // vim: et sw=4 sts=4