Skip to content

Commit

Permalink
fix bug 451:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nikrou committed Aug 1, 2006
1 parent 7cdf66a commit 3723a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/user.inc.php
Expand Up @@ -65,7 +65,8 @@
$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');
}
Expand Down

0 comments on commit 3723a95

Please sign in to comment.