aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/post.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-10 00:23:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-10 00:23:39 +0000
commit89dddd90499565c153a8b90debc4e080592459a9 (patch)
tree76fba93340ed053e34395c2052066706987bb2df /phpBB/includes/post.php
parent88570ae91923e251ce7189545ac4486b532023c4 (diff)
downloadforums-89dddd90499565c153a8b90debc4e080592459a9.tar
forums-89dddd90499565c153a8b90debc4e080592459a9.tar.gz
forums-89dddd90499565c153a8b90debc4e080592459a9.tar.bz2
forums-89dddd90499565c153a8b90debc4e080592459a9.tar.xz
forums-89dddd90499565c153a8b90debc4e080592459a9.zip
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
Diffstat (limited to 'phpBB/includes/post.php')
-rw-r--r--phpBB/includes/post.php8
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);