From: pdontthink Date: Tue, 17 Jul 2007 22:50:51 +0000 (+0000) Subject: Remove incorrect and unnecessary substr length arg X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=956f804a73e649f5b8ac430333aae56a75bec7d5;p=squirrelmail.git Remove incorrect and unnecessary substr length arg git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12552 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/folder_manip.php b/functions/folder_manip.php index 775b0f4f..49a3a3d3 100644 --- a/functions/folder_manip.php +++ b/functions/folder_manip.php @@ -106,7 +106,7 @@ function folders_rename_getname ($imapConnection, $delimiter, $old) { $old = imap_utf7_decode_local($old); if (strpos($old, $delimiter)) { - $old_name = substr($old, strrpos($old, $delimiter)+1, strlen($old)); + $old_name = substr($old, strrpos($old, $delimiter)+1); // hide default prefix (INBOX., mail/ or other) $quoted_prefix=preg_quote($default_folder_prefix,'/'); $prefix_length=(preg_match("/^$quoted_prefix/",$old) ? strlen($default_folder_prefix) : 0);