index 5c9207166009385b446d1fd04f92aed948fdc8af..00766954d939e4ecc00957a043f9d0c2b47212b3 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
/* Fill template with required values */
$username = "";
if(isset($_POST["username"])) {
- $username= $_POST["username"];
+ $username= get_post("username");
}
$smarty->assign ("title","GOsa");
@@ -284,11 +284,11 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
/* Check for valid input */
$ok= true;
if (!$htaccess_authenticated) {
- $username= $_POST["username"];
+ $username= get_post("username");
if (!preg_match("/^[@A-Za-z0-9_.-]+$/", $username)) {
$message= _("Please specify a valid user name!");
$ok= false;
- } elseif (mb_strlen($_POST["password"], 'UTF-8') == 0) {
+ } elseif (mb_strlen(get_post("password"), 'UTF-8') == 0) {
$message= _("Please specify your password!");
$smarty->assign ('nextfield', 'password');
$ok= false;
@@ -305,7 +305,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
exit;
}
} else {
- $ui= ldap_login_user($username, $_POST["password"]);
+ $ui= ldap_login_user($username, get_post("password"));
}
if ($ui === NULL || !$ui) {
$message= _("Please check the username/password combination!");