소스 검색

Merge pull request #2721 from nextcloud/ocs-die-on-exception

[downstream] Die in OCS v1.php on exception
tags/v12.0.0beta1
Roeland Jago Douma 7 년 전
부모
커밋
4f79d2ff0d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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();
}

/*

Loading…
취소
저장