From 65e7b636913f6f7e3de344dd7352110f6b14b0a7 Mon Sep 17 00:00:00 2001 From: x2004lefloch Date: Fri, 20 Jul 2007 14:51:55 +0000 Subject: [PATCH] Use $forlife instead of $email for the redirection target, because the user input can have errors (spaces, for instance), which may have been corrected automatically when searching for the forlife alias. git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1885 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/xnetgrp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index ede566c..1d2dba9 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -679,7 +679,7 @@ class XnetGrpModule extends PLModule FROM auth_user_md5 AS u INNER JOIN aliases AS a ON (u.user_id = a.id) WHERE a.alias={?}', $globals->asso('id'), $forlife); - pl_redirect("member/$email"); + pl_redirect("member/$forlife"); } else { $page->trig($email." n'est pas un alias polytechnique.org valide"); } -- 2.1.4