diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index eadd1ba2de..7d12abad90 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -218,9 +218,7 @@ class factory implements \phpbb\textformatter\cache_interface { $configurator->urlConfig->disallowScheme($scheme); } - - $schemes = array_filter(explode(',', $this->config['allowed_schemes_links'])); - foreach ($schemes as $scheme) + foreach (array_filter(explode(',', $this->config['allowed_schemes_links'])) as $scheme) { $configurator->urlConfig->allowScheme(trim($scheme)); }