|
From: Paul S. O. <ps...@us...> - 2002-01-31 01:11:29
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv9221
Modified Files:
privmsg.php
Log Message:
Fix slashing problems ... occured when privmsg has an error and refreshes
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -r1.75 -r1.76
*** privmsg.php 2002/01/27 22:13:16 1.75
--- privmsg.php 2002/01/31 01:11:24 1.76
***************
*** 1154,1157 ****
--- 1154,1161 ----
$privmsg_message = ( isset($HTTP_POST_VARS['message']) ) ? trim($HTTP_POST_VARS['message']) : "";
$privmsg_message = preg_replace('#<textarea>#si', '<textarea>', $privmsg_message);
+ if( !$preview )
+ {
+ $privmsg_message = stripslashes($privmsg_message);
+ }
//
|