If loop exit is caused by $i being greater than or equal to $cnt, do try to append...
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 Nov 2005 21:21:50 +0000 (21:21 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 Nov 2005 21:21:50 +0000 (21:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10374 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Rfc822Header.class.php

index fa821bf9acbb0a4eb9b914459de00d0eaf878394..d2b2ff1a50703d005107e2ae228da5ca6b65314d 100644 (file)
@@ -179,7 +179,9 @@ class Rfc822Header {
                         }
                         $result .= $value{$i};
                     }
-                    $result .= $value{$i};
+                    if($i < $cnt) {
+                        $result .= $value{$i};
+                    }
                     break;
                 case '(':
                     $depth = 1;
@@ -938,4 +940,4 @@ class Rfc822Header {
     }
 }
 
-?>
\ No newline at end of file
+?>