- Timestamp:
- 11/01/12 10:35:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/mail/RenameFolderResource.php
r7469 r7489 8 8 if($this-> isLoggedIn()) 9 9 { 10 $old_id 10 $old_id = mb_convert_encoding($this->getParam('folderID'), "UTF-8", "ISO-8859-1"); 11 11 $new_name = mb_convert_encoding($this->getParam('folderName'), "UTF-8", "ISO-8859-1"); 12 12 13 if(!$this->getImap()->folder_exists( 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 16 16 $default_folders = array_keys($this->defaultFolders); 17 17 if(in_array($old_id, $default_folders))
Note: See TracChangeset
for help on using the changeset viewer.