fix error when wrong dir was specified

remotes/origin/stable5
Jörn Friedrich Dreyer 12 years ago
parent f19787f84c
commit fc64e8ec58
  1. 4
      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 )));

Loading…
Cancel
Save