mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
Minor change: check for potential bbcodes before we parse the message
git-svn-id: file:///svn/phpbb/trunk@4695 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
068f81b676
commit
84ede6d436
1 changed files with 2 additions and 2 deletions
|
@ -74,13 +74,13 @@ class parse_message
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->html($html);
|
$this->html($html);
|
||||||
if ($bbcode)
|
if ($bbcode && strpos($this->message, '[') !== FALSE)
|
||||||
{
|
{
|
||||||
$this->bbcode_init();
|
$this->bbcode_init();
|
||||||
$disallow = array('allow_img', 'allow_flash', 'allow_quote');
|
$disallow = array('allow_img', 'allow_flash', 'allow_quote');
|
||||||
foreach ($disallow as $bool)
|
foreach ($disallow as $bool)
|
||||||
{
|
{
|
||||||
if (!$$bool)
|
if (!${$bool})
|
||||||
{
|
{
|
||||||
$this->bbcodes[str_replace('allow_', '', $bool)]['disabled'] = TRUE;
|
$this->bbcodes[str_replace('allow_', '', $bool)]['disabled'] = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue