diff options
Diffstat (limited to 'phpBB/includes/post.php')
-rw-r--r-- | phpBB/includes/post.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/post.php b/phpBB/includes/post.php index 57c6255653..9e135a259c 100644 --- a/phpBB/includes/post.php +++ b/phpBB/includes/post.php @@ -35,7 +35,11 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid // $message = trim($message); - if($html_on) + if( !$html_on ) + { + $message = htmlspecialchars($message); + } +/* else if($html_on) { $start = -1; $end = 0; @@ -73,7 +77,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid } } } - +*/ if($bbcode_on) { $message = bbencode_first_pass($message, $bbcode_uid); |