"Cosmetic" patch change in commented module information.
[squirrelmail.git] / index.php
index 45e3f83..436e8e2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,8 +1,7 @@
 <?php
-   $headers = getallheaders();
-   $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
-   $location = $headers["Host"] . $path;
+   include "./functions/strings.php";
 
-   header("Location: http://$location/src/login.php\n\n");
+   $location = get_location();
+   header("Location: $location/src/login.php\n\n");
    exit();
 ?>