aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-11-27 23:27:35 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-11-27 23:27:35 +0000
commit84ede6d436a9351ba0aee69f40235ecfe333d3c9 (patch)
treef4a1d736297e182b74b4382cbfd805b2cc124a7c /phpBB/includes/message_parser.php
parent068f81b6769b20f6c78f93aa48c2f0ca52259964 (diff)
downloadforums-84ede6d436a9351ba0aee69f40235ecfe333d3c9.tar
forums-84ede6d436a9351ba0aee69f40235ecfe333d3c9.tar.gz
forums-84ede6d436a9351ba0aee69f40235ecfe333d3c9.tar.bz2
forums-84ede6d436a9351ba0aee69f40235ecfe333d3c9.tar.xz
forums-84ede6d436a9351ba0aee69f40235ecfe333d3c9.zip
Minor change: check for potential bbcodes before we parse the message
git-svn-id: file:///svn/phpbb/trunk@4695 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 07f7a3519d..4944f94c6d 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -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;
}