From 89dddd90499565c153a8b90debc4e080592459a9 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 10 Aug 2001 00:23:39 +0000 Subject: Code added to get around double htmlspecialchar stuff + some of my stuff looks to allow HTML even when off, removed git-svn-id: file:///svn/phpbb/trunk@829 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/post.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'phpBB/includes') 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); -- cgit v1.2.1