Fix for infinite loop when trying to decode multi-part mime attachments
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 16:16:48 +0000 (16:16 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 16:16:48 +0000 (16:16 +0000)
(Bug #710210)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4694 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php

index 5f6a040a88261ff7188175133290bd302472e457..4e7dc48e8be1ef0bb08f5c541b06bae81fea8f5a 100644 (file)
@@ -486,6 +486,10 @@ class Message {
              $i = $iPos;
              break;
           }
+       $iPos++;
+       if ($iPos > strlen($read)) {
+          break;
+       }
        }
         return $s;
     }