diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-11-27 23:27:35 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-11-27 23:27:35 +0000 |
commit | 84ede6d436a9351ba0aee69f40235ecfe333d3c9 (patch) | |
tree | f4a1d736297e182b74b4382cbfd805b2cc124a7c /phpBB/includes/message_parser.php | |
parent | 068f81b6769b20f6c78f93aa48c2f0ca52259964 (diff) | |
download | forums-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.php | 4 |
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; } |