mirror of https://github.com/friendica/friendica
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
361 B
PHP
13 lines
361 B
PHP
<?php
|
|
|
|
class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal
|
|
{
|
|
public $name = 'DisableExternalResources';
|
|
public function filter(&$uri, $config, $context) {
|
|
if (!$context->get('EmbeddedURI', true)) return true;
|
|
return parent::filter($uri, $config, $context);
|
|
}
|
|
}
|
|
|
|
// vim: et sw=4 sts=4
|