3
class HTMLPurifier_URIFilter_HostBlacklist extends HTMLPurifier_URIFilter
5
public $name = 'HostBlacklist';
6
protected $blacklist = array();
7
public function prepare($config) {
8
$this->blacklist = $config->get('URI.HostBlacklist');
11
public function filter(&$uri, $config, $context) {
12
foreach($this->blacklist as $blacklisted_host_fragment) {
13
if (strpos($uri->host, $blacklisted_host_fragment) !== false) {