projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bundesverdienstkreuz
[platal.git]
/
htdocs
/
listes_redirect.php
diff --git
a/htdocs/listes_redirect.php
b/htdocs/listes_redirect.php
index
c3eba99
..
3b9191f
100644
(file)
--- a/
htdocs/listes_redirect.php
+++ b/
htdocs/listes_redirect.php
@@
-21,7
+21,7
@@
require_once dirname(__FILE__).'/../include/xorg.inc.php';
require_once dirname(__FILE__).'/../include/xorg.inc.php';
-preg_match('
/^\/(moderate|admin|members|archives)\/(.*)_([^_]*)(/.*)?$/
', $_SERVER['REQUEST_URI'], $matches);
+preg_match('
!^/(moderate|admin|members|archives)/(.*)_([^_]*)(/.*)?$!
', $_SERVER['REQUEST_URI'], $matches);
if ($matches) {
if ($matches) {
@@
-29,7
+29,7
@@
if ($matches) {
$mbox = $matches[2];
$fqdn = strtolower($matches[3]);
$sup = $matches[4];
$mbox = $matches[2];
$fqdn = strtolower($matches[3]);
$sup = $matches[4];
-
+
if ($fqdn == 'polytechnique.org') {
http_redirect("https://www.polytechnique.org/lists/$action/$mbox$sup");
}
if ($fqdn == 'polytechnique.org') {
http_redirect("https://www.polytechnique.org/lists/$action/$mbox$sup");
}