X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fauth-redirect.php;h=71f4b6d87468431a73b6946049d99531c0c1bd9f;hb=74d27abd5e5b6a035746aac96a2f6b97e4bae3b9;hp=715606cdf787627f0407c75a36a4a1dcb07cddcd;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/htdocs/auth-redirect.php b/htdocs/auth-redirect.php index 715606c..71f4b6d 100644 --- a/htdocs/auth-redirect.php +++ b/htdocs/auth-redirect.php @@ -22,9 +22,5 @@ require_once("xorg.inc.php"); new_skinned_page('index.tpl',AUTH_COOKIE); -//adresse de redirection par defaut -if (isset($_REQUEST['dest'])) $redirect=$_REQUEST['dest']; -else $redirect="/"; - -header("Location: ".$redirect); +redirect(Env::get('dest', '/')); ?>