]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix error when wrong dir was specified
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 3 Jan 2013 12:31:23 +0000 (13:31 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 3 Jan 2013 12:34:56 +0000 (13:34 +0100)
apps/files/ajax/upload.php

index d9960494cc8de8125eca7e97993e9254cf6dcffd..2a2d935da6c6f78314e8cb4fa3690e2743c2dd6d 100644 (file)
@@ -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 )));