1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

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
This commit is contained in:
Paul S. Owen
2001-08-10 00:23:39 +00:00
parent 88570ae919
commit 89dddd9049
2 changed files with 11 additions and 12 deletions

View File

@@ -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);