Browse Source

updated the index.php to be absolute, not relative, fixed some bugs in
url parser.

Luke Ehresman 25 years ago
parent
commit
6677291b5b
3 changed files with 8 additions and 2 deletions
  1. 1 0
      ChangeLog
  2. 1 1
      functions/url_parser.php
  3. 6 1
      index.php

+ 1 - 0
ChangeLog

@@ -1,5 +1,6 @@
 Version 0.4pre2 -- DEVELOPMENT
 Version 0.4pre2 -- DEVELOPMENT
 ------------------------------
 ------------------------------
+- HTML based search of address books (javascript an option)
 - Made folder listing look first at subscribed folders, making it
 - Made folder listing look first at subscribed folders, making it
   faster, even if you don't have $folder_prefix set.
   faster, even if you don't have $folder_prefix set.
 - Fixed some bugs with default sent and trash folders
 - Fixed some bugs with default sent and trash folders

+ 1 - 1
functions/url_parser.php

@@ -22,7 +22,7 @@
       $done=False;
       $done=False;
       while (!$done) {
       while (!$done) {
          #Look for when a URL starts
          #Look for when a URL starts
-         $where = strpos($body,"http:",$start);
+         $where = strpos(strtolower($body),"http://",$start);
          if ($where) {
          if ($where) {
             # Find the end of that URL
             # Find the end of that URL
             reset($poss_ends); $end=0; 
             reset($poss_ends); $end=0; 

+ 6 - 1
index.php

@@ -1,3 +1,8 @@
 <?php
 <?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();
 ?>
 ?>