From: Nicolas Iooss Date: Sat, 8 Mar 2014 15:10:59 +0000 (+0100) Subject: Fix HTTP redirect when changing rights on polytechnique.net and Referer header is... X-Git-Tag: xorg/1.1.12~8 X-Git-Url: http://git.polytechnique.org/?p=platal.git;a=commitdiff_plain;h=32459b6871639adeeb45f5b7669e232b040d7d6b Fix HTTP redirect when changing rights on polytechnique.net and Referer header is filtered --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 0a40bae..53ebb12 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -920,7 +920,11 @@ class XnetGrpModule extends PLModule break; } } - http_redirect($_SERVER['HTTP_REFERER']); + if (!empty($_SERVER['HTTP_REFERER'])) { + http_redirect($_SERVER['HTTP_REFERER']); + } else { + pl_redirect(''); + } } function handler_admin_annuaire($page)