Skip to content
Snippets Groups Projects
Commit fc64e8ec authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

fix error when wrong dir was specified

parent f19787f8
Branches
No related tags found
No related merge requests found
......@@ -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 )));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment