|
From: Paul S. O. <ps...@us...> - 2001-12-05 00:00:42
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv12705
Modified Files:
posting.php
Log Message:
Fix stripslashing on errors, preview, poll option addition ... okay I lied, but this one does work, honest guv ... wanna buy a bridge?
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.120
retrieving revision 1.121
diff -C2 -r1.120 -r1.121
*** posting.php 2001/12/04 22:02:30 1.120
--- posting.php 2001/12/05 00:00:39 1.121
***************
*** 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));
--- 2717,2721 ----
// then stripslashes
//
! if( !empty($post_message) && ( $preview || $error || $refresh ) )
{
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
|