summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2020-04-05 16:56:35 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2020-04-05 21:59:55 +0200
commit1369eb87b3ff29f13855c10ad0c5c6d4e6bdfe49 (patch)
treec17d0ecb93cdbfd349d5e4a6a03434f5ceb4e79a
parent853ed9a950cc3b70b57be3deb6d20c131c0cbfe3 (diff)
downloadaur-1369eb87b3ff29f13855c10ad0c5c6d4e6bdfe49.tar.gz
aur-1369eb87b3ff29f13855c10ad0c5c6d4e6bdfe49.tar.xz
Fix invalid session ID check
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/lib/aur.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index dbcc23a4..f4ad6b47 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -50,7 +50,7 @@ function check_sid() {
$result = $dbh->query($q);
$row = $result->fetch(PDO::FETCH_NUM);
- if (!$row[0]) {
+ if (!$row) {
# Invalid SessionID - hacker alert!
#
$failed = 1;