aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));
}