summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4827a1b)
raw | patch | inline | side by side (parent: 4827a1b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Jul 2010 08:07:11 +0000 (08:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Jul 2010 08:07:11 +0000 (08:07 +0000) |
-Use get_post instead of validate
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19295 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19295 594d385d-05f5-0310-b6e9-bd551577e9d8
index ba0d1d530153daad12c05376db13f9c1a55b9424..d66a96cc2fa9d63056ef7120c5aad39e324c7eb6 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
/* 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);
/* 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'];
}
index b42aadf8181a9fab77920fc5dd15fadbc7707e1a..954231dfe3890fb26f4f2ac3bfc8018ab12c8700 100644 (file)
$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= "";
index c0af25616f106baecc84c51b72c457fe43faa76b..f56a3689c96cd084e09760ef3093cc6daf150886 100644 (file)
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 a4c2da751814df94cf11765047718d1f30526df3..27749c6259b1645702d7f7afc9a4447b203caf7f 100644 (file)
/* Get attributes */
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
- $this->$attr = validate($_POST[$attr]);
+ $this->$attr = get_post($attr);
}
}
}