updated the index.php to be absolute, not relative, fixed some bugs in
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 May 2000 18:55:39 +0000 (18:55 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 May 2000 18:55:39 +0000 (18:55 +0000)
url parser.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@486 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/url_parser.php
index.php

index e3de956..d2ad7e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 Version 0.4pre2 -- DEVELOPMENT
 ------------------------------
+- HTML based search of address books (javascript an option)
 - Made folder listing look first at subscribed folders, making it
   faster, even if you don't have $folder_prefix set.
 - Fixed some bugs with default sent and trash folders
index bcb5f7b..676c9f1 100644 (file)
@@ -22,7 +22,7 @@
       $done=False;
       while (!$done) {
          #Look for when a URL starts
-         $where = strpos($body,"http:",$start);
+         $where = strpos(strtolower($body),"http://",$start);
          if ($where) {
             # Find the end of that URL
             reset($poss_ends); $end=0; 
index 9a80878..45e3f83 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,3 +1,8 @@
 <?php
-   header("Location: src/login.php");
+   $headers = getallheaders();
+   $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
+   $location = $headers["Host"] . $path;
+
+   header("Location: http://$location/src/login.php\n\n");
+   exit();
 ?>