1
0
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:
Ludovic Arnaud
2003-11-27 23:27:35 +00:00
parent 068f81b676
commit 84ede6d436

View File

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