From: <pdo...@us...> - 2024-03-27 09:50:47
|
Revision: 15012 http://sourceforge.net/p/squirrelmail/code/15012 Author: pdontthink Date: 2024-03-27 09:50:45 +0000 (Wed, 27 Mar 2024) Log Message: ----------- Hack for problem where $i is used as both boolean and int Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2024-03-27 08:43:23 UTC (rev 15011) +++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2024-03-27 09:50:45 UTC (rev 15012) @@ -808,6 +808,8 @@ $read = trim(substr($read,$i)); $i_len = strlen($read); $i = strpos($read,' '); + if ($i === FALSE) + break; $arg = substr($read,0,$i); ++$i; switch ($arg) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |