summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/sys_auth.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/sys_auth.php b/includes/sys_auth.php
index 68e336b0..009be2d8 100644
--- a/includes/sys_auth.php
+++ b/includes/sys_auth.php
@@ -19,7 +19,10 @@ function load_auth() {
if (count($user) > 0) {
// User ist eingeloggt, Datensatz zur Verfügung stellen und Timestamp updaten
list ($user) = $user;
- sql_query("UPDATE `User` SET " . "`lastLogIn` = '" . time() . "'" . " WHERE `UID` = '" . $_SESSION['uid'] . "' LIMIT 1;");
+ sql_query("UPDATE `User` SET "
+ . "`lastLogIn` = '" . time() . "'"
+ . " WHERE `UID` = '" . sql_escape($_SESSION['uid']) . "' LIMIT 1;"
+ );
} else
unset ($_SESSION['uid']);
}
@@ -52,4 +55,4 @@ function PassCrypt($passwort) {
return md5($passwort);
}
}
-?> \ No newline at end of file
+?>