From a71680b71938656c7e96c7a9e29af3fac3ec50ab Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 Jul 2010 08:07:11 +0000 Subject: [PATCH] Updated POST handling for some classes -Use get_post instead of validate git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19295 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/index.php | 8 ++++---- gosa-core/html/password.php | 2 +- gosa-core/include/functions.inc | 2 +- gosa-core/setup/class_setupStep_Finish.inc | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index ba0d1d530..d66a96cc2 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -83,7 +83,7 @@ function displayLogin() /* Generate server list */ $servers= array(); if (isset($_POST['server'])) { - $selected= validate($_POST['server']); + $selected= get_post('server'); } else { $selected= $config->data['MAIN']['DEFAULT']; } @@ -261,7 +261,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces } if (!$htaccess_authenticated) { - $server= validate($_POST["server"]); + $server= get_post("server"); } $config->set_current($server); @@ -393,8 +393,8 @@ $smarty->assign ("message", $message); /* Generate server list */ $servers= array(); -if (isset($_POST['server'])) { - $selected= validate($_POST['server']); +if (isset($_POST['server'])){ + $selected= get_post('server'); } else { $selected= $config->data['MAIN']['DEFAULT']; } diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index b42aadf81..954231dfe 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -205,7 +205,7 @@ if (isset($_GET['uid']) && $_GET['uid'] != "") { $uid= validate($_GET['uid']); $smarty->assign('display_username', false); } elseif (isset($_POST['uid'])) { - $uid= validate($_POST['uid']); + $uid= get_post('uid'); $smarty->assign('display_username', true); } else { $uid= ""; diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index c0af25616..f56a3689c 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1298,7 +1298,7 @@ function eval_sizelimit() if (tests::is_id($_POST['new_limit']) && isset($_POST['action']) && $_POST['action']=="newlimit"){ - session::global_set('size_limit', validate($_POST['new_limit'])); + session::global_set('size_limit', get_post('new_limit')); session::set('size_ignore', FALSE); } diff --git a/gosa-core/setup/class_setupStep_Finish.inc b/gosa-core/setup/class_setupStep_Finish.inc index a4c2da751..27749c625 100644 --- a/gosa-core/setup/class_setupStep_Finish.inc +++ b/gosa-core/setup/class_setupStep_Finish.inc @@ -138,7 +138,7 @@ class Step_Finish extends setup_step /* Get attributes */ foreach($this->attributes as $attr){ if(isset($_POST[$attr])){ - $this->$attr = validate($_POST[$attr]); + $this->$attr = get_post($attr); } } } -- 2.30.2