From c9c7acf1370112e36cd1065226266fae55719e26 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 13 Aug 2002 16:49:35 +0000 Subject: [PATCH] fix in unfolding headerlines (\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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/class/mime.class.php b/class/mime.class.php index a2dfb35d..e8b83734 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -12,12 +12,14 @@ * $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 = ''; -- 2.25.1