mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
Fix slashing problems ... occured when privmsg has an error and refreshes
git-svn-id: file:///svn/phpbb/trunk@2018 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
da08c276f9
commit
09d99238b6
1 changed files with 4 additions and 0 deletions
|
@ -1153,6 +1153,10 @@ else if( $submit || $refresh || $mode != "" )
|
|||
$privmsg_subject = ( isset($HTTP_POST_VARS['subject']) ) ? trim(strip_tags(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 )
|
||||
{
|
||||
$privmsg_message = stripslashes($privmsg_message);
|
||||
}
|
||||
|
||||
//
|
||||
// Do mode specific things
|
||||
|
|
Loading…
Add table
Reference in a new issue