35 $this->regexp =
$config->get(
'URI.SafeIframeRegexp');
48 if (!
$config->get(
'HTML.SafeIframe')) {
52 if (!$context->get(
'EmbeddedURI',
true)) {
55 $token = $context->get(
'CurrentToken',
true);
56 if (!($token && $token->name ==
'iframe')) {
60 if ($this->regexp === null) {
64 return preg_match($this->regexp, $uri->toString());
Chainable filters for custom URI processing.
Implements safety checks for safe iframes.
filter(&$uri, $config, $context)