mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
Replace usage of strip_tags with htmlspecialchars for consistancy with posting
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5519 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1187,7 +1187,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||
$error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['No_to_user'];
|
||||
}
|
||||
|
||||
$privmsg_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
|
||||
$privmsg_subject = trim(htmlspecialchars($HTTP_POST_VARS['subject']));
|
||||
if ( empty($privmsg_subject) )
|
||||
{
|
||||
$error = TRUE;
|
||||
@@ -1374,7 +1374,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||
//
|
||||
$to_username = (isset($HTTP_POST_VARS['username']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['username']))) : '';
|
||||
|
||||
$privmsg_subject = ( isset($HTTP_POST_VARS['subject']) ) ? trim(strip_tags(stripslashes($HTTP_POST_VARS['subject']))) : '';
|
||||
$privmsg_subject = ( isset($HTTP_POST_VARS['subject']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['subject']))) : '';
|
||||
$privmsg_message = ( isset($HTTP_POST_VARS['message']) ) ? trim($HTTP_POST_VARS['message']) : '';
|
||||
$privmsg_message = preg_replace('#<textarea>#si', '<textarea>', $privmsg_message);
|
||||
if ( !$preview )
|
||||
|
Reference in New Issue
Block a user