From d0073587105ba17abeaaffc5dff9ee43306d2a9e Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 29 Jan 2014 08:52:12 +0100 Subject: [PATCH] [FIX] Ignore missing HTTP_REFERRER Fixes #1626 --- public/include/pages/account/reset_failed.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/account/reset_failed.inc.php b/public/include/pages/account/reset_failed.inc.php index ef30938f..9f19b030 100644 --- a/public/include/pages/account/reset_failed.inc.php +++ b/public/include/pages/account/reset_failed.inc.php @@ -6,7 +6,7 @@ if (!defined('SECURITY')) die('Hacking attempt'); if ($user->isAuthenticated()) { // Reset failed login counter $user->setUserFailed($_SESSION['USERDATA']['id'], 0); - header("Location: " . $_SERVER['HTTP_REFERER']); + if (!empty($_SERVER['HTTP_REFERER'])) header("Location: " . $_SERVER['HTTP_REFERER']); } // Somehow we still need to load this empty template $smarty->assign("CONTENT", "empty");