projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix HTTP redirect when changing rights on polytechnique.net and Referer header is...
[platal.git]
/
modules
/
xnetgrp.php
diff --git
a/modules/xnetgrp.php
b/modules/xnetgrp.php
index
0a40bae
..
53ebb12
100644
(file)
--- 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)