summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-07-14 13:50:12 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 22:19:52 +0200
commit1fd559151b201556ae8d2b71de8abc8641dbf953 (patch)
tree844851b26f66085b891e02af35612aa9a115a144 /web/lib/aur.inc.php
parent81e0b7fe183107873ae9e8ee66746226a960ced6 (diff)
downloadaurweb-1fd559151b201556ae8d2b71de8abc8641dbf953.tar.xz
aur.inc.php: Use delete_session_id() where appropriate
Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/aur.inc.php')
-rw-r--r--web/lib/aur.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index f82a96a..5a70e77 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -52,9 +52,7 @@ function check_sid($dbh=NULL) {
} elseif ($failed == 2) {
# session id timeout was reached and they must login again.
#
- $q = "DELETE FROM Sessions WHERE SessionID = '";
- $q.= db_escape_string($_COOKIE["AURSID"]) . "'";
- db_query($q, $dbh);
+ delete_session_id($_COOKIE["AURSID"], $dbh);
setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true);
unset($_COOKIE['AURSID']);