make banana work again.
[platal.git] / scripts / webredirect.php
index 6c1c2c6..e112476 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -35,9 +35,9 @@ $res = $globals->xdb->query(
 if ($url = $res->fetchOneCell()) {
     $url = preg_replace('@/+$@', '', $url);
     if($path) {
-        header("Location: http://$url/$path");
+        redirect("http://$url/$path");
     } else {
-        header("Location: http://$url");
+        redirect("http://$url");
     }
     exit();
 }