Parcourir la source

* :-) The first letter of matching folders had their head removed!
(one char too many trimmed)

Tyler Akins il y a 24 ans
Parent
commit
7b4f0bec46
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

@@ -156,7 +156,7 @@
          $boxes[$g]['unformatted'] = $mailbox;
          //$boxes[$g]['unformatted-disp'] = ereg_replace('^' . $folder_prefix, '', $mailbox);
          if (substr($mailbox,0,strlen($folder_prefix))==$folder_prefix) { 
-            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix)+1); 
+            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix));
          }
          $boxes[$g]['id'] = $g;