From: <pdo...@us...> - 2021-10-17 22:32:34
|
Revision: 14932 http://sourceforge.net/p/squirrelmail/code/14932 Author: pdontthink Date: 2021-10-17 22:32:33 +0000 (Sun, 17 Oct 2021) Log Message: ----------- Someone meant to use strlen() instead of sizeof() but neither is necessary Modified Paths: -------------- trunk/squirrelmail/functions/imap_general.php Modified: trunk/squirrelmail/functions/imap_general.php =================================================================== --- trunk/squirrelmail/functions/imap_general.php 2021-10-12 00:16:30 UTC (rev 14931) +++ trunk/squirrelmail/functions/imap_general.php 2021-10-17 22:32:33 UTC (rev 14932) @@ -1335,7 +1335,7 @@ $namespace[$ns_strings[$i]] = array(); } else { // Pop-out the first ( and last ) for easier parsing - $ns = substr($regs[$i], 1, sizeof($regs[$i])-2); + $ns = substr($regs[$i], 1, -1); if($c = preg_match_all('/\((?:(.*?)\s*?)\)/', $ns, $regs2)) { $namespace[$ns_strings[$i]] = array(); for($j=0; $j<sizeof($regs2[1]); $j++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |