bugfix: sur certains navigateur, les URLs commencant par ? posent probleme.
authorx2002bobillot <x2002bobillot@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 9 Jan 2006 21:55:03 +0000 (21:55 +0000)
committerx2002bobillot <x2002bobillot@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 9 Jan 2006 21:55:03 +0000 (21:55 +0000)
De maniere generale, "Location: URL" c'est mieux avec une URL complete.

git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.9@204 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs.net/groupe/membres-edit.php

index a57ea61..8209b1a 100644 (file)
@@ -59,7 +59,7 @@
                         FROM  auth_user_md5 AS u
                         INNER JOIN  aliases       AS a ON (u.user_id = a.id)
                         WHERE  a.alias={?}', $globals->asso('id'), $forlife);
-                        redirect('?edit='.$email);
+                        redirect($_SERVER['PHP_SELF'].'?edit='.$email);
                 } else {
                     $page->trig($email." n'est pas un alias polytechnique.org valide");
                 }
@@ -69,7 +69,7 @@
                     $uid = max(intval($res->fetchOneCell()), 50001);
                     $globals->xdb->execute('INSERT INTO  groupex.membres (uid,asso_id,origine,email) VALUES({?},{?},"ext",{?})',
                             $uid, $globals->asso('id'), $email);
-                    redirect('?edit='.$email);
+                    redirect($_SERVER['PHP_SELF'].'?edit='.$email);
                 } else {
                     $page->trig("« <strong>$email</strong> » n'est pas une adresse mail valide");
                 }