aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-31 01:11:24 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-31 01:11:24 +0000
commit09d99238b600a1f5c7c644b311cb822ea791a44c (patch)
tree3a730fcc6ac9de1af6d172dd213298210f75bdc7 /phpBB
parentda08c276f9ec9d6c16aadab7444631319eadc118 (diff)
downloadforums-09d99238b600a1f5c7c644b311cb822ea791a44c.tar
forums-09d99238b600a1f5c7c644b311cb822ea791a44c.tar.gz
forums-09d99238b600a1f5c7c644b311cb822ea791a44c.tar.bz2
forums-09d99238b600a1f5c7c644b311cb822ea791a44c.tar.xz
forums-09d99238b600a1f5c7c644b311cb822ea791a44c.zip
Fix slashing problems ... occured when privmsg has an error and refreshes
git-svn-id: file:///svn/phpbb/trunk@2018 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/privmsg.php4
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', '&lt;textarea&gt;', $privmsg_message);
+ if( !$preview )
+ {
+ $privmsg_message = stripslashes($privmsg_message);
+ }
//
// Do mode specific things