Changeset 8015


Ignore:
Timestamp:
03/14/13 17:29:27 (6 years ago)
Author:
angelo
Message:

Ticket #3388 - Problema ao renomear pasta que contenha ponto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r8014 r8015  
    26412641                $path_delimiter = strrpos($namebox,$this->imap_delimiter)+1; 
    26422642                $base_path = substr($namebox,0,$path_delimiter); 
    2643                 $test = preg_split("/\/|\./",substr($arr['rename'], $path_delimiter)); 
    2644                 $new_box = array_shift($test); 
    2645                 $subfolders = $test; 
     2643                $rename = preg_split("/\/|\./",substr($arr['rename'], $path_delimiter)); 
     2644                $new_box = array_shift($rename); 
     2645                $subfolders = $rename; 
    26462646                $imap_server = $_SESSION['phpgw_info']['expressomail']['email_server']['imapServer']; 
    26472647                $mbox_stream = $this->open_mbox(); 
    2648                 //$ren_folder = imap_renamemailbox($mbox_stream,"{".$imap_server."}INBOX.$namebox","{".$imap_server."}INBOX.$new_box"); 
    26492648                $result = "Ok"; 
    26502649                $namebox = mb_convert_encoding($namebox, "UTF7-IMAP","UTF-8"); 
     
    26562655                } 
    26572656                /*Cria as subpastas*/ 
    2658                 if ($result == "Ok" && is_array($subfolders)){ 
     2657                if (is_array($subfolders)){ 
    26592658                        $child = $new_box.$this->imap_delimiter; 
    26602659            $subfolders_count = count($subfolders); 
Note: See TracChangeset for help on using the changeset viewer.