mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 20:45:16 +02: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:
@ -74,13 +74,13 @@ class parse_message
|
||||
}
|
||||
|
||||
$this->html($html);
|
||||
if ($bbcode)
|
||||
if ($bbcode && strpos($this->message, '[') !== FALSE)
|
||||
{
|
||||
$this->bbcode_init();
|
||||
$disallow = array('allow_img', 'allow_flash', 'allow_quote');
|
||||
foreach ($disallow as $bool)
|
||||
{
|
||||
if (!$$bool)
|
||||
if (!${$bool})
|
||||
{
|
||||
$this->bbcodes[str_replace('allow_', '', $bool)]['disabled'] = TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user