From 7d477d674c83a74b24cc34849be2cf8baf2208b4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 12 May 2006 02:20:13 +0000 Subject: [PATCH] r825: When logging out, redirect to the page that was last being viewed if we get the HTTP_REFERER --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index cb9ad52..74d2c71 100755 --- a/login.php +++ b/login.php @@ -99,7 +99,7 @@ if ($_REQUEST['do'] == 'logout') $funct->cookie(COOKIE_PREFIX . 'userid'); $funct->cookie(COOKIE_PREFIX . 'authkey'); $funct->cookie(COOKIE_PREFIX . 'adminsession'); - $message->redirect($lang->string('You have been logged out.'), 'index.php'); + $message->redirect($lang->string('You have been logged out.'), ($_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : 'index.php')); } else { -- 2.22.5