[1/2] Fix invalid session ID check

Message ID 20200405150606.26586-1-lfleischer@archlinux.org
State New
Headers show
Series
  • [1/2] Fix invalid session ID check
Related show

Commit Message

Lukas Fleischer April 5, 2020, 3:06 p.m. UTC
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
---
 web/lib/aur.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index dbcc23a..f4ad6b4 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;