kopia lustrzana https://github.com/friendica/friendica
13 wiersze
361 B
PHP
Executable File
13 wiersze
361 B
PHP
Executable File
<?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
|