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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.