aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-08-01 13:33:21 +0000
committernikrou <nikrou@piwigo.org>2006-08-01 13:33:21 +0000
commit3723a95a6c4afdb3e419a25f3b286d08731ecd4e (patch)
treea5de86dcd7688520f22b16508bcafed5f3f143b3 /include/user.inc.php
parent7cdf66abf041a3f4319fcfdbc298189a71218bc3 (diff)
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
Diffstat (limited to 'include/user.inc.php')
-rw-r--r--include/user.inc.php3
1 files changed, 2 insertions, 1 deletions
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');
}