|
From: Paul S. O. <ps...@us...> - 2001-12-04 22:03:13
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv15199
Modified Files:
posting.php
Log Message:
Fix stripslashing on errors, preview, poll option addition ... this one actually works properly ...
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -r1.119 -r1.120
*** posting.php 2001/12/04 18:08:43 1.119
--- posting.php 2001/12/04 22:02:30 1.120
***************
*** 2350,2354 ****
$post_user_id = $postrow['user_id'];
! $post_username = ( $post_user_id == ANONYMOUS && $postrow['post_username'] != "") ? $postrow['post_username'] : $postrow['username'];
$post_subject = $postrow['post_subject'];
$post_message = $postrow['post_text'];
--- 2350,2354 ----
$post_user_id = $postrow['user_id'];
! $post_username = ( $post_user_id == ANONYMOUS && $postrow['post_username'] != "" ) ? $postrow['post_username'] : $postrow['username'];
$post_subject = $postrow['post_subject'];
$post_message = $postrow['post_text'];
***************
*** 2717,2721 ****
// then stripslashes
//
! if( !empty($post_message) && $mode != "edit" && $mode != "reply" )
{
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
--- 2717,2721 ----
// then stripslashes
//
! if( !empty($post_message) && $mode != "editpost" && $mode != "reply" )
{
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
|