]>
Commit | Line | Data |
---|---|---|
010efc9b AD |
1 | <?php |
2 | ||
3 | class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal | |
4 | { | |
5 | public $name = 'DisableExternalResources'; | |
6 | public function filter(&$uri, $config, $context) { | |
7 | if (!$context->get('EmbeddedURI', true)) return true; | |
8 | return parent::filter($uri, $config, $context); | |
9 | } | |
10 | } | |
11 | ||
12 | // vim: et sw=4 sts=4 |