CC-2747: If the file contains '\' in its meta title, airtime doesn't

detect duplicate

- fixed
- extra fix: there was also problem with web UI upload and it's fixed
see the comment on the ticket for more detail.
This commit is contained in:
James 2012-07-05 15:27:49 -04:00
parent 1cbb0345b3
commit 9bc1c66fe3
2 changed files with 8 additions and 7 deletions

View file

@ -40,7 +40,7 @@ class PluploadController extends Zend_Controller_Action
$tempname = $this->_getParam('tempname');
$result = Application_Model_StoredFile::copyFileToStor($upload_dir, $filename, $tempname);
if (!is_null($result))
die('{"jsonrpc" : "2.0", "error" : {"code": '.$result['code'].', "message" : "'.$result['message'].'"}}');
die('{"jsonrpc" : "2.0", "error" : '.json_encode($result).'}');
die('{"jsonrpc" : "2.0"}');
}