aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-05 00:00:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-05 00:00:39 +0000
commit4d495f9a5905bb3859f5de17a2ee34389594ab49 (patch)
tree96fac8c4594676df62f87fe14a879f2558449c50
parent8c8362d7bf3da866d15f030fa1167eb4577b0866 (diff)
downloadforums-4d495f9a5905bb3859f5de17a2ee34389594ab49.tar
forums-4d495f9a5905bb3859f5de17a2ee34389594ab49.tar.gz
forums-4d495f9a5905bb3859f5de17a2ee34389594ab49.tar.bz2
forums-4d495f9a5905bb3859f5de17a2ee34389594ab49.tar.xz
forums-4d495f9a5905bb3859f5de17a2ee34389594ab49.zip
Fix stripslashing on errors, preview, poll option addition ... okay I lied, but this one does work, honest guv ... wanna buy a bridge?
git-svn-id: file:///svn/phpbb/trunk@1510 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 924d665f07..32fc055f4e 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -2716,7 +2716,7 @@ switch($mode)
// If post_message is not empty (as per a preview or error )
// then stripslashes
//
-if( !empty($post_message) && $mode != "editpost" && $mode != "reply" )
+if( !empty($post_message) && ( $preview || $error || $refresh ) )
{
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
}