fix in unfolding headerlines
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Aug 2002 16:49:35 +0000 (16:49 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Aug 2002 16:49:35 +0000 (16:49 +0000)
(\s doesn't work in str_replace)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3293 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index a2dfb35d730658c32e3af7063d7df8a90e6ffee3..e8b83734d81272e17c584f34ba7d6ea7677c758d 100644 (file)
  * $Id$
  */
 
+
+
 /* 
  * rdc822_header class
  * input: header_string or array
  */
-class rfc822_header {
+class rfc822_header
+{
     var $date = '',
         $subject = '',
        $from = array(),
@@ -43,7 +45,7 @@ class rfc822_header {
           $hdr = implode('',$hdr);
        }
         /* first we unfold the header */
-       $hdr = str_replace(array("\r\n\t","\r\n\s"),array('',''),$hdr);
+       $hdr = str_replace(array("\r\n\t","\r\n "),array('',''),$hdr);
        /* 
         * now we can make a new header array with each element representing 
         * a headerline
@@ -100,7 +102,8 @@ class rfc822_header {
         return $s;
     }     
     
-    function parseField($field,$value) {
+    function parseField($field,$value)
+    {
         $field = strtolower($field);
         switch($field)
        {
@@ -186,7 +189,8 @@ class rfc822_header {
        }
     } 
 
-    function parseAddress($address, $ar=false, $addr_ar = array(), $group = '') {
+    function parseAddress($address, $ar=false, $addr_ar = array(), $group = '')
+    {
         $pos = 0;
         $j = strlen( $address );
         $name = '';