mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/15531] Workaround for false-positive sniff
PHPBB3-15531
This commit is contained in:
parent
531d9dfa1f
commit
3c5b3254d1
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
namespace phpbb\textformatter\s9e;
|
namespace phpbb\textformatter\s9e;
|
||||||
|
|
||||||
use Exception;
|
|
||||||
use s9e\TextFormatter\Configurator;
|
use s9e\TextFormatter\Configurator;
|
||||||
use s9e\TextFormatter\Configurator\Items\AttributeFilters\RegexpFilter;
|
use s9e\TextFormatter\Configurator\Items\AttributeFilters\RegexpFilter;
|
||||||
use s9e\TextFormatter\Configurator\Items\UnsafeTemplate;
|
use s9e\TextFormatter\Configurator\Items\UnsafeTemplate;
|
||||||
|
@ -430,7 +429,7 @@ class factory implements \phpbb\textformatter\cache_interface
|
||||||
{
|
{
|
||||||
$configurator->BBCodes->addCustom($usage, new UnsafeTemplate($template));
|
$configurator->BBCodes->addCustom($usage, new UnsafeTemplate($template));
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
$this->log->add('critical', null, null, 'LOG_BBCODE_CONFIGURATION_ERROR', false, [$usage, $e->getMessage()]);
|
$this->log->add('critical', null, null, 'LOG_BBCODE_CONFIGURATION_ERROR', false, [$usage, $e->getMessage()]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue