Patches applied:
* opensource@polytechnique.org--2005/platal--release--0.9.6--patch-18
bug : connexion juste apres une deconnexion pour xnet
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-653
$_SESSION['session'] = new XnetSession;
}
if (!logged()) {
- $returl = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}";
+ // prevent connexion to be linked to deconnexion
+ if (($i = strpos($_SERVER['REQUEST_URI'], 'deconnexion.php')) !== false)
+ $returl = "http://{$_SERVER['SERVER_NAME']}".substr($_SERVER['REQUEST_URI'], 0, $i);
+ else
+ $returl = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}";
$url = "https://www.polytechnique.org/auth-groupex.php";
$url .= "?session=" . session_id();
$url .= "&challenge=" . $_SESSION['session']->challenge;