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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user