aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-03-03 04:18:17 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-04-02 19:16:02 +0200
commit78b544920c0d3984dd814cfe59f43c46feac6f12 (patch)
treebb7c9c67c8fe249e367d0071a58d516e45afcf0f /phpBB/phpbb
parentdc9a28d346370b38c10def92358170a5cef23b36 (diff)
downloadforums-78b544920c0d3984dd814cfe59f43c46feac6f12.tar
forums-78b544920c0d3984dd814cfe59f43c46feac6f12.tar.gz
forums-78b544920c0d3984dd814cfe59f43c46feac6f12.tar.bz2
forums-78b544920c0d3984dd814cfe59f43c46feac6f12.tar.xz
forums-78b544920c0d3984dd814cfe59f43c46feac6f12.zip
[ticket/11768] Added support for creating unsafe BBCodes
PHPBB3-11768
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php
index a5b3527822..9327da4b4f 100644
--- a/phpBB/phpbb/textformatter/s9e/factory.php
+++ b/phpBB/phpbb/textformatter/s9e/factory.php
@@ -15,6 +15,7 @@ namespace phpbb\textformatter\s9e;
use s9e\TextFormatter\Configurator;
use s9e\TextFormatter\Configurator\Items\AttributeFilters\Regexp as RegexpFilter;
+use s9e\TextFormatter\Configurator\Items\UnsafeTemplate;
/**
* Creates s9e\TextFormatter objects
@@ -236,7 +237,7 @@ class factory implements \phpbb\textformatter\cache
try
{
- $configurator->BBCodes->addCustom($row['bbcode_match'], $tpl);
+ $configurator->BBCodes->addCustom($row['bbcode_match'], new UnsafeTemplate($tpl));
}
catch (\Exception $e)
{