From 282e4a9293d834428b931c74d152434420d82e3e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Oct 2010 08:27:07 +0000 Subject: [PATCH] Allow special char logins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19903 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index 059867a05..00766954d 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -50,7 +50,7 @@ function displayLogin() /* 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; -- 2.30.2