diff options
Diffstat (limited to 'phpBB/privmsg.php')
-rw-r--r-- | phpBB/privmsg.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index e1299ae08c..d4d9144867 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -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 |