From: x2000habouzit Date: Wed, 6 Oct 2004 13:23:20 +0000 (+0000) Subject: god I hate stripslashes X-Git-Tag: xorg/old~1429 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=024398f393f6078f70ba4a0dd2b28fcb09c64d71;p=platal.git god I hate stripslashes --- 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':