1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-14 04:42:04 +02:00

[ticket/16428] Fix invalid scheme name (empty value)

PHPBB3-16428
This commit is contained in:
3D-I 2020-04-06 22:07:48 +02:00
parent c990818200
commit 33666c7817

View File

@ -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));
}