From 0086593cb64bc88f0995a9d00e956b5411fb6a02 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sun, 14 Sep 2003 16:30:27 +0000 Subject: [PATCH] add stripslashes if needed --- admin/inc/class.uiconfig.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/inc/class.uiconfig.inc.php b/admin/inc/class.uiconfig.inc.php index a422f605ea..1d770ccbb2 100644 --- a/admin/inc/class.uiconfig.inc.php +++ b/admin/inc/class.uiconfig.inc.php @@ -22,6 +22,11 @@ { $GLOBALS['phpgw']->redirect_link('/index.php'); } + + if(get_magic_quotes_gpc() && is_array($_POST['newsettings'])) + { + $_POST['newsettings'] = array_map("stripslashes", $_POST['newsettings']); + } switch($_GET['appname']) {