Explorar el Código

Die in OCS v1.php on exception

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Vincent Petry hace 7 años
padre
commit
00f135d320
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      ocs/v1.php

+ 3 - 1
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();
 }
 
 /*