summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-03-13 13:17:15 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2016-03-13 13:17:15 +0100
commit3ec3dfb6aa7464a9220a75592d6246ac931c0ff1 (patch)
treebef4d6dab9f6f45ba287ac784b1d0bfa8ff94739 /web/lib
parent2dfa72131bfbc96584b78b597f86471874108a89 (diff)
parent32c8d0c3f837950518f886ed9baef00e98740049 (diff)
downloadaur-3ec3dfb6aa7464a9220a75592d6246ac931c0ff1.tar.gz
aur-3ec3dfb6aa7464a9220a75592d6246ac931c0ff1.tar.xz
Merge branch 'maint'
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/acctfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index be0981f2..0eb021ee 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -557,8 +557,8 @@ function try_login() {
}
$q = "UPDATE Users SET LastLogin = UNIX_TIMESTAMP(), ";
- $q.= "LastLoginIPAddress = " . $dbh->quote(ip2long($_SERVER['REMOTE_ADDR'])) . " ";
- $q.= "WHERE ID = '$userID'";
+ $q.= "LastLoginIPAddress = " . $dbh->quote($_SERVER['REMOTE_ADDR']) . " ";
+ $q.= "WHERE ID = $userID";
$dbh->exec($q);
/* Set the SID cookie. */