فهرست منبع

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

Luke Ehresman 25 سال پیش
والد
کامیت
6677291b5b
3فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  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
 ------------------------------
+- 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

+ 1 - 1
functions/url_parser.php

@@ -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; 

+ 6 - 1
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();
 ?>