From 3723a95a6c4afdb3e419a25f3b286d08731ecd4e Mon Sep 17 00:00:00 2001 From: nikrou Date: Tue, 1 Aug 2006 13:33:21 +0000 Subject: fix bug 451: when guest access in not allowed identification.php script try to redirect to himself ad infinitum. git-svn-id: http://piwigo.org/svn/trunk@1522 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/user.inc.php b/include/user.inc.php index 6eb0b605f..896a9752d 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -65,7 +65,8 @@ else $user['is_the_guest'] = true; } -if ($user['is_the_guest'] and !$conf['guest_access']) +if ($user['is_the_guest'] and !$conf['guest_access'] + and (basename($_SERVER['PHP_SELF'])!='identification.php')) { redirect (get_root_url().'identification.php'); } -- cgit v1.2.3