From 00f135d320fecee402c6b3a72cd9103b00750303 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 18 Nov 2016 10:29:51 +0100 Subject: [PATCH] Die in OCS v1.php on exception Signed-off-by: Lukas Reschke --- ocs/v1.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocs/v1.php b/ocs/v1.php index 5aec27ad98..79e74f20cd 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(); } /*