Fix an infinite recursion on authentication failure on x.net (Closes #821)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Apr 2008 16:47:30 +0000 (18:47 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Apr 2008 16:47:30 +0000 (18:47 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/xnet/session.inc.php

index ef6c733..92c189a 100644 (file)
@@ -109,6 +109,7 @@ class XnetSession
         global $globals, $page;
 
         if (md5('1'.S::v('challenge').$globals->xnet->secret.Get::i('uid').'1') != Get::v('auth')) {
+            Get::kill('auth');
             if (!$page) {
                 require_once 'xnet.inc.php';
                 new_skinned_page('platal/index.tpl');