From: Jörn Friedrich Dreyer Date: Thu, 3 Jan 2013 12:31:23 +0000 (+0100) Subject: fix error when wrong dir was specified X-Git-Tag: v5.0.0alpha1~265^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc64e8ec58961068ae91375325c4f96108ab39b9;p=nextcloud-server.git fix error when wrong dir was specified --- 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 )));