Merge commit 'origin/platal-0.10.0'
[platal.git] / htdocs / listes_redirect.php
index 739c58d..29ad13f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -20,6 +20,7 @@
  ***************************************************************************/
 
 require_once dirname(__FILE__).'/../include/xorg.inc.php';
+$platal = new Xorg();
 
 preg_match('!^/(moderate|admin|members|archives)/(.*)_([^_]*)(/.*)?$!', $_SERVER['REQUEST_URI'], $matches);
 
@@ -28,7 +29,7 @@ if ($matches) {
     $action = $matches[1];
     $mbox   = $matches[2];
     $fqdn   = strtolower($matches[3]);
-    $sup    = $matches[4];
+    $sup    = @$matches[4];
 
     if ($fqdn == 'polytechnique.org') {
         http_redirect("https://www.polytechnique.org/lists/$action/$mbox$sup");