Fix stripslashing on errors, preview, poll option addition ... this one actually works properly ...

git-svn-id: file:///svn/phpbb/trunk@1509 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-12-04 22:02:30 +00:00
parent 3da714e11a
commit 8c8362d7bf

View file

@ -2349,7 +2349,7 @@ else
} }
$post_user_id = $postrow['user_id']; $post_user_id = $postrow['user_id'];
$post_username = ( $post_user_id == ANONYMOUS && $postrow['post_username'] != "") ? $postrow['post_username'] : $postrow['username']; $post_username = ( $post_user_id == ANONYMOUS && $postrow['post_username'] != "" ) ? $postrow['post_username'] : $postrow['username'];
$post_subject = $postrow['post_subject']; $post_subject = $postrow['post_subject'];
$post_message = $postrow['post_text']; $post_message = $postrow['post_text'];
$post_bbcode_uid = $postrow['bbcode_uid']; $post_bbcode_uid = $postrow['bbcode_uid'];
@ -2716,7 +2716,7 @@ switch($mode)
// If post_message is not empty (as per a preview or error ) // If post_message is not empty (as per a preview or error )
// then stripslashes // then stripslashes
// //
if( !empty($post_message) && $mode != "edit" && $mode != "reply" ) if( !empty($post_message) && $mode != "editpost" && $mode != "reply" )
{ {
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message)); $post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
} }