summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b54473d)
raw | patch | inline | side by side (parent: b54473d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Oct 2010 08:27:07 +0000 (08:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Oct 2010 08:27:07 +0000 (08:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19903 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/index.php | patch | blob | history |
index 059867a057280b24c1b53651496d22217ad5b5fd..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;