From 3fda8d246fad314f658ac784059f2da5ce157f75 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 17 Oct 2021 22:32:33 +0000 Subject: [PATCH] Someone meant to use strlen() instead of sizeof() but neither is necessary git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14932 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index ade39d62..9221c87b 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -1335,7 +1335,7 @@ function sqimap_parse_namespace(&$input) { $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