From 33666c7817fbea06b1f46a2392fb71caa24fcf94 Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Mon, 6 Apr 2020 22:07:48 +0200 Subject: [PATCH] [ticket/16428] Fix invalid scheme name (empty value) PHPBB3-16428 --- phpBB/phpbb/textformatter/s9e/factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }