From bf5c28cf2260df822efa72095af69cc119170a3e Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Fri, 4 Jan 2008 06:26:47 +0900 Subject: Fix bug with botched AURSID values In the check_sid function in aur.inc the condition for expiring the cookie and redirecting to hacker.php could never be met and instead the user would be given blank login instead of being considered logged out, now fixed. This also means we no longer need either hacker.php or timeout.php at all. Also, this bug seems to be present in the AUR version running on aur.archlinux.org. Signed-off-by: Callan Barrett --- web/template/header.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/template/header.php') diff --git a/web/template/header.php b/web/template/header.php index 5230dc5..440cb24 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -68,7 +68,10 @@ foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
", username_from_sid($_COOKIE["AURSID"]), "")); +} else { if ($login_error) { print "" . $login_error . "
\n"; } @@ -81,9 +84,6 @@ if (!isset($_COOKIE["AURSID"])) { ", username_from_sid($_COOKIE["AURSID"]), "")); } ?>
-- cgit v1.2.3-70-g09d2