Sfoglia il codice sorgente

address book saves stuff between instances

Luke Ehresman 25 anni fa
parent
commit
568042e06c
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 2
      functions/imap_messages.php
  2. 0 1
      src/addrbook_search_html.php

+ 2 - 2
functions/imap_messages.php

@@ -259,7 +259,7 @@
             $pos = 0;
             $pos = 0;
             $header["CC"][$pos] = trim(substr($read[$i], 4));
             $header["CC"][$pos] = trim(substr($read[$i], 4));
             $i++;
             $i++;
-            while ((substr($read[$i], 0, 1) == " ") && (trim($read[$i]) != "")) {
+            while (((substr($read[$i], 0, 1) == " ") || (substr($read[$i], 0, 1) == "\t"))  && (trim($read[$i]) != "")){
                $pos++;
                $pos++;
                $header["CC"][$pos] = trim($read[$i]);
                $header["CC"][$pos] = trim($read[$i]);
                $i++;
                $i++;
@@ -270,7 +270,7 @@
             $pos = 0;
             $pos = 0;
             $header["TO"][$pos] = trim(substr($read[$i], 4));
             $header["TO"][$pos] = trim(substr($read[$i], 4));
             $i++;
             $i++;
-            while ((substr($read[$i], 0, 1) == " ")  && (trim($read[$i]) != "")){
+            while (((substr($read[$i], 0, 1) == " ") || (substr($read[$i], 0, 1) == "\t"))  && (trim($read[$i]) != "")){
                $pos++;
                $pos++;
                $header["TO"][$pos] = trim($read[$i]);
                $header["TO"][$pos] = trim($read[$i]);
                $i++;
                $i++;

+ 0 - 1
src/addrbook_search_html.php

@@ -34,7 +34,6 @@
    displayPageHeader($color, "None");
    displayPageHeader($color, "None");
    //<form method=post action="compose.php?html_addr_search=true">
    //<form method=post action="compose.php?html_addr_search=true">
 
 
-   
    $body = stripslashes($body);
    $body = stripslashes($body);
    $send_to = stripslashes($send_to);
    $send_to = stripslashes($send_to);
    $send_to_cc = stripslashes($send_to_cc);
    $send_to_cc = stripslashes($send_to_cc);