fix error when wrong dir was specified
This commit is contained in:
parent
f19787f84c
commit
fc64e8ec58
1 changed files with 2 additions and 2 deletions
|
@ -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 )));
|
||||
|
|
Loading…
Reference in a new issue