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