Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ocs/v1.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 5aec27ad981..79e74f20cdf 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -65,8 +65,10 @@ try {
} catch (MethodNotAllowedException $e) {
OC_API::setContentType();
OC_Response::setStatus(405);
-} catch (\OC\OCS\Exception $ex) {
+ exit();
+} catch (Exception $ex) {
OC_API::respond($ex->getResult(), OC_API::requestedFormat());
+ exit();
}
/*