address book saves stuff between instances
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 May 2000 01:23:25 +0000 (01:23 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 May 2000 01:23:25 +0000 (01:23 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@497 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php
src/addrbook_search_html.php

index 9898710ecc95477b87122f18430493233858c530..dee22165663967b710938bf69051c4fdfc86923d 100755 (executable)
             $pos = 0;
             $header["CC"][$pos] = trim(substr($read[$i], 4));
             $i++;
             $pos = 0;
             $header["CC"][$pos] = trim(substr($read[$i], 4));
             $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++;
                $header["CC"][$pos] = trim($read[$i]);
                $i++;
                $pos++;
                $header["CC"][$pos] = trim($read[$i]);
                $i++;
             $pos = 0;
             $header["TO"][$pos] = trim(substr($read[$i], 4));
             $i++;
             $pos = 0;
             $header["TO"][$pos] = trim(substr($read[$i], 4));
             $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++;
                $header["TO"][$pos] = trim($read[$i]);
                $i++;
                $pos++;
                $header["TO"][$pos] = trim($read[$i]);
                $i++;
index d28825289ccb3b75240b499b79ff019a5f937b06..02a35b4c4891927adce600ff6c340cff59ca12c6 100644 (file)
@@ -34,7 +34,6 @@
    displayPageHeader($color, "None");
    //<form method=post action="compose.php?html_addr_search=true">
 
    displayPageHeader($color, "None");
    //<form method=post action="compose.php?html_addr_search=true">
 
-   
    $body = stripslashes($body);
    $send_to = stripslashes($send_to);
    $send_to_cc = stripslashes($send_to_cc);
    $body = stripslashes($body);
    $send_to = stripslashes($send_to);
    $send_to_cc = stripslashes($send_to_cc);