diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-04 22:02:30 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-04 22:02:30 +0000 |
| commit | 8c8362d7bf3da866d15f030fa1167eb4577b0866 (patch) | |
| tree | 8426e60ddf61531c9ad10b5f86d69f0afbc2c10b /phpBB/posting.php | |
| parent | 3da714e11a6eaa6d1d46703f59e5a0c44c673446 (diff) | |
| download | forums-8c8362d7bf3da866d15f030fa1167eb4577b0866.tar forums-8c8362d7bf3da866d15f030fa1167eb4577b0866.tar.gz forums-8c8362d7bf3da866d15f030fa1167eb4577b0866.tar.bz2 forums-8c8362d7bf3da866d15f030fa1167eb4577b0866.tar.xz forums-8c8362d7bf3da866d15f030fa1167eb4577b0866.zip | |
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
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 3a13bc0fc3..924d665f07 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -2349,7 +2349,7 @@ else } $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_message = $postrow['post_text']; $post_bbcode_uid = $postrow['bbcode_uid']; @@ -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 != "edit" && $mode != "reply" ) +if( !empty($post_message) && $mode != "editpost" && $mode != "reply" ) { $post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message)); } |
