From d3703d40c8495527846f1a9a36d4f255aba8b67b Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 27 Mar 2024 09:52:05 +0000 Subject: [PATCH] Hack for problem where $i is used as both boolean and int git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@15013 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index c1650b33..f70733dc 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -685,6 +685,8 @@ function parseFetch(&$aResponse,$aMessageList = array()) { $read = trim(substr($read,$i)); $i_len = strlen($read); $i = strpos($read,' '); + if ($i === FALSE) + break; $arg = substr($read,0,$i); ++$i; /* -- 2.25.1