From 9c4f7ac4dd268238af9d11ec5eb818fc46970343 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..81d44a9652184 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) { if ($ex instanceof Exception) { $httpCode = $ex->getHTTPCode(); $headers = $ex->getHTTPHeaders($this->server);