From a7586ccf47a579988d20cb8338b254bbac418d5c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 2 Dec 2023 20:52:45 -0800 Subject: [PATCH] fix(files): allow any throwable in logException If a TypeError is passed here, it in turn causes a TypeError which kills the rendering of the error page. Signed-off-by: Varun Patil --- apps/dav/lib/Files/BrowserErrorPagePlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/Files/BrowserErrorPagePlugin.php b/apps/dav/lib/Files/BrowserErrorPagePlugin.php index b3ce591bd4a8e..eccae8afdd533 100644 --- a/apps/dav/lib/Files/BrowserErrorPagePlugin.php +++ b/apps/dav/lib/Files/BrowserErrorPagePlugin.php @@ -70,9 +70,9 @@ public static function isBrowserRequest(IRequest $request) { } /** - * @param \Exception $ex + * @param \Throwable $ex */ - public function logException(\Exception $ex) { + public function logException(\Throwable $ex): void { if ($ex instanceof Exception) { $httpCode = $ex->getHTTPCode(); $headers = $ex->getHTTPHeaders($this->server);