Server error/hint pages with a 500 error code to avoid it being seen instead of the actual resource
* found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
+1
-2
@@ -77,8 +77,7 @@ function handleException($e) {
|
||||
}
|
||||
if ($e instanceof RemoteException) {
|
||||
// we shall not log on RemoteException
|
||||
OC_Response::setStatus($e->getCode());
|
||||
OC_Template::printErrorPage($e->getMessage());
|
||||
OC_Template::printErrorPage($e->getMessage(), '', $e->getCode());
|
||||
} else {
|
||||
\OC::$server->getLogger()->logException($e, ['app' => 'remote']);
|
||||
OC_Response::setStatus($statusCode);
|
||||
|
||||
Reference in New Issue
Block a user