From 59900357a72081eae3bc843128b0f7f8a807dfd8 Mon Sep 17 00:00:00 2001 From: rxu Date: Fri, 12 Jun 2020 10:31:24 +0700 Subject: [PATCH] [ticket/16526] Revert unneeded s9e/factory change PHPBB3-16526 --- phpBB/phpbb/textformatter/s9e/factory.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)); }