fix for trailing space in personal address names
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 12:43:30 +0000 (12:43 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 12:43:30 +0000 (12:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3326 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index e76797b..363f540 100644 (file)
@@ -265,7 +265,7 @@ class rfc822_header
              {
                 $addr = substr($address,0,$pos);
              } elseif ($name == '') {
-                $name = substr($address,0,$addr_start);
+                $name = trim(substr($address,0,$addr_start));
              }
              
              $at = strpos($addr, '@');
@@ -317,7 +317,7 @@ class rfc822_header
            $addr = substr($address,0,$pos);
         } elseif ($name == '')
        {
-           $name = substr($address,0,$addr_start);
+           $name = trim(substr($address,0,$addr_start));
         }
         $at = strpos($addr, '@');
         $addr_structure = new address_structure();