35 $this->regexp = $config->get(
'URI.SafeIframeRegexp');
45 public function filter(&$uri, $config, $context)
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());