From 024398f393f6078f70ba4a0dd2b28fcb09c64d71 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 6 Oct 2004 13:23:20 +0000 Subject: [PATCH] god I hate stripslashes --- htdocs/listes/options.php | 4 ++-- htdocs/listes/soptions.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/listes/options.php b/htdocs/listes/options.php index 2dceef3..eab5848 100644 --- a/htdocs/listes/options.php +++ b/htdocs/listes/options.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: options.php,v 1.2 2004-10-06 13:16:49 x2000habouzit Exp $ + $Id: options.php,v 1.3 2004-10-06 13:23:20 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); @@ -35,7 +35,7 @@ mysql_free_result($res); $client = new xmlrpc_client("http://{$_SESSION['uid']}:$pass@localhost:4949"); if(isset($_POST['submit'])) { - $values = $_POST; + $values =array_map('stripslashes',$_POST); unset($values['submit']); $values['send_goodbye_msg'] = empty($values['send_goodbye_msg']) ? false : true; $values['admin_notify_mchanges'] = empty($values['admin_notify_mchanges']) ? false : true; diff --git a/htdocs/listes/soptions.php b/htdocs/listes/soptions.php index 62107ce..4bdc8e8 100644 --- a/htdocs/listes/soptions.php +++ b/htdocs/listes/soptions.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: soptions.php,v 1.2 2004-10-06 13:16:49 x2000habouzit Exp $ + $Id: soptions.php,v 1.3 2004-10-06 13:23:20 x2000habouzit Exp $ ***************************************************************************/ if(empty($_REQUEST['liste'])) header('Location: index.php'); @@ -35,7 +35,7 @@ mysql_free_result($res); $client = new xmlrpc_client("http://{$_SESSION['uid']}:$pass@localhost:4949"); if(isset($_POST['submit'])) { - $values = $_POST; + $values = array_map('stripslashes', $_POST); unset($values['submit']); switch($values['moderate']) { case '0': -- 2.1.4