- Timestamp:
- 10/26/12 14:02:39 (11 years ago)
- Location:
- sandbox/webservice/api/rest/mail
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/mail/AddFolderResource.php
r6166 r7469 11 11 $parent_id = empty($parent_id) ? 'INBOX' : $parent_id; 12 12 $new_name = $this->getParam('folderName'); 13 $new_name = mb_convert_encoding($new_name, "UTF-8", "ISO-8859-1"); 14 13 15 14 16 $all_folders = $this->getImap()->get_folders_list(); -
sandbox/webservice/api/rest/mail/RenameFolderResource.php
r6165 r7469 8 8 if($this-> isLoggedIn()) 9 9 { 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"); 12 12 13 if(!$this->getImap()->folder_exists( $old_id))13 if(!$this->getImap()->folder_exists( mb_convert_encoding($old_id, "UTF7-IMAP", "UTF-8"))) 14 14 Errors::runException("MAIL_INVALID_OLD_FOLDER"); 15 15
Note: See TracChangeset
for help on using the changeset viewer.