From: indiri69 Date: Thu, 17 Nov 2005 21:21:50 +0000 (+0000) Subject: If loop exit is caused by $i being greater than or equal to $cnt, do try to append... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bf489229d6c3109ad1bd306c8ad226082c59524c;p=squirrelmail.git If loop exit is caused by $i being greater than or equal to $cnt, do try to append the non existent value git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10374 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index fa821bf9..d2b2ff1a 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -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 +?>