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

Merge pull request #5935 from 3D-I/ticket/16428

[ticket/16428] Fix invalid scheme name (empty value)
This commit is contained in:
Marc Alexander 2020-04-21 21:35:49 +02:00
commit bf36dd2036
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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