]> git.wh0rd.org - tt-rss.git/blame - lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
quickAddFeed: remove oauth notice, mention you can paste site URL
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / URIFilter / DisableExternalResources.php
CommitLineData
010efc9b
AD
1<?php
2
3class 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