Changeset 7469


Ignore:
Timestamp:
10/26/12 14:02:39 (8 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Ajustando os encodings dos parametros para caixa postal.

Location:
sandbox/webservice/api/rest/mail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/mail/AddFolderResource.php

    r6166 r7469  
    1111                        $parent_id = empty($parent_id) ? 'INBOX' : $parent_id; 
    1212                        $new_name  = $this->getParam('folderName'); 
     13                        $new_name  = mb_convert_encoding($new_name, "UTF-8", "ISO-8859-1"); 
     14 
    1315 
    1416                        $all_folders = $this->getImap()->get_folders_list(); 
  • sandbox/webservice/api/rest/mail/RenameFolderResource.php

    r6165 r7469  
    88                if($this-> isLoggedIn()) 
    99                { 
    10                         $old_id   = $this->getParam('folderID'); 
    11                         $new_name = $this->getParam('folderName'); 
     10                        $old_id   = mb_convert_encoding($this->getParam('folderID'), "UTF-8", "ISO-8859-1"); 
     11                        $new_name = mb_convert_encoding($this->getParam('folderName'), "UTF-8", "ISO-8859-1"); 
    1212 
    13                         if(!$this->getImap()->folder_exists($old_id)) 
     13                        if(!$this->getImap()->folder_exists( mb_convert_encoding($old_id, "UTF7-IMAP", "UTF-8"))) 
    1414                                Errors::runException("MAIL_INVALID_OLD_FOLDER"); 
    1515 
Note: See TracChangeset for help on using the changeset viewer.