|
| $name = 'DisableExternal' |
|
| $name |
| Unique identifier of filter. More...
|
|
| $post = false |
| True if this filter should be run after scheme validation. More...
|
|
| $always_load = false |
| True if this filter should always be loaded (this permits a filter to be named Foo without the corresponding URI.Foo directive existing.) More...
|
|
Definition at line 3 of file DisableExternal.php.
◆ filter()
HTMLPurifier_URIFilter_DisableExternal::filter |
( |
& |
$uri, |
|
|
|
$config, |
|
|
|
$context |
|
) |
| |
Definition at line 11 of file DisableExternal.php.
12 if (is_null($uri->host))
return true;
13 if ($this->ourHostParts ===
false)
return false;
14 $host_parts = array_reverse(explode(
'.', $uri->host));
15 foreach ($this->ourHostParts as $i => $x) {
16 if (!isset($host_parts[$i]))
return false;
17 if ($host_parts[$i] != $this->ourHostParts[$i])
return false;
◆ prepare()
HTMLPurifier_URIFilter_DisableExternal::prepare |
( |
|
$config | ) |
|
Definition at line 7 of file DisableExternal.php.
8 $our_host = $config->getDefinition(
'URI')->host;
9 if ($our_host !== null) $this->ourHostParts = array_reverse(explode(
'.', $our_host));
◆ $name
HTMLPurifier_URIFilter_DisableExternal::$name = 'DisableExternal' |
◆ $ourHostParts
HTMLPurifier_URIFilter_DisableExternal::$ourHostParts = false |
|
protected |
The documentation for this class was generated from the following file: