minor bugfix, first line of message used to remove preceeding spaces.
[squirrelmail.git] / functions / strings.php
index c9162fa3a50af03be2e8eee1c96538514c91bb83..1798a59ba9e6a3fcb5658f7749fa6346680a7120 100644 (file)
       $text = str_replace(" ", "", $text);
       $text = str_replace(",", ";", $text);
       $array = explode(";", $text);
+               for ($i = 0; $i < count ($array); $i++) {
+                       $array[$i] = eregi_replace ("^.*\<", "", $array[$i]);
+                       $array[$i] = eregi_replace ("\>.*$", "", $array[$i]);
+               }
       return $array;
    }
 
@@ -94,7 +98,6 @@
    function translateText($body, $wrap_at, $charset) {
       include ("../functions/url_parser.php");
       /** Add any parsing you want to in here */
-      $body = trim($body);
       $body_ary = explode("\n", $body);
 
       for ($i = 0; $i < count($body_ary); $i++) {
    }
 
    /* SquirrelMail version number -- DO NOT CHANGE */
-   $version = "0.4pre1";
+   $version = "0.4pre2";
 
 
    function find_mailbox_name ($mailbox) {