diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-12-31 13:58:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-12-31 13:58:41 +0000 |
commit | cf54570f6c3ad03065df9ff18a57cac145305443 (patch) | |
tree | babd22755f7c896a43021f2e5f06891e06f99d3e /phpBB/includes/message_parser.php | |
parent | 1e334fca0edeeb519a6d59808c5d82fbc989e6e3 (diff) | |
download | forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.gz forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.bz2 forums-cf54570f6c3ad03065df9ff18a57cac145305443.tar.xz forums-cf54570f6c3ad03065df9ff18a57cac145305443.zip |
- fixed [code=php]
- optimized db/mysql.php a little bit
git-svn-id: file:///svn/phpbb/trunk@5037 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r-- | phpBB/includes/message_parser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 00c57c81e6..7caadd123e 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -234,6 +234,9 @@ class bbcode_firstpass extends bbcode ini_set($ini_var, str_replace('highlight.', 'syntax', $ini_var)); } + // Because highlight_string is specialcharing the text (but we already did this before), we have to reverse this in order to get correct results + $code = strtr($code, array_flip(get_html_translation_table(HTML_ENTITIES))); + ob_start(); highlight_string($code); $code = ob_get_contents(); |