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 fa821bf..d2b2ff1 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
+?>