From 4d495f9a5905bb3859f5de17a2ee34389594ab49 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 5 Dec 2001 00:00:39 +0000 Subject: [PATCH] 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 --- phpBB/posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }