From c2b4791af02f0d545089383a705d6b7ca790c0dc Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 15 Nov 2010 16:55:11 -0800 Subject: [PATCH] prevent redirect loop if an account is manually removed while logged in --- include/auth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/auth.php b/include/auth.php index ccaa970de..5d7ac436b 100644 --- a/include/auth.php +++ b/include/auth.php @@ -28,6 +28,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p ); if(! count($r)) { + unset($_SESSION['authenticated']); + unset($_SESSION['uid']); goaway($a->get_baseurl()); }