From: x2004lefloch Date: Fri, 20 Jul 2007 14:51:55 +0000 (+0000) Subject: Use $forlife instead of $email for the redirection target, because the user input... X-Git-Tag: xorg/0.9.15~238 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=65e7b636913f6f7e3de344dd7352110f6b14b0a7;p=platal.git 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 --- 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"); }