diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-03 13:31:23 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-03 13:34:56 +0100 |
commit | fc64e8ec58961068ae91375325c4f96108ab39b9 (patch) | |
tree | e0f4c6c4142612dbec0c1deefb80548a09c451a4 /apps | |
parent | f19787f84c775bf74a9266a2fd44b73fb42312f0 (diff) | |
download | nextcloud-server-fc64e8ec58961068ae91375325c4f96108ab39b9.tar.gz nextcloud-server-fc64e8ec58961068ae91375325c4f96108ab39b9.zip |
fix error when wrong dir was specified
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/ajax/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index d9960494cc8..2a2d935da6c 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -66,7 +66,7 @@ if(strpos($dir, '..') === false) { OCP\JSON::encodedPrint($result); exit(); } else { - $error='invalid dir'; + $error=$l->t( 'Invalid directory.' ); } -OCP\JSON::error(array('data' => array('error' => $error, 'file' => $fileName))); +OCP\JSON::error(array('data' => array('message' => $error ))); |