aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2023-12-02 20:52:45 -0800
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-12-04 10:46:51 +0100
commita20556193ca9cad8ea2817f0e5f1c1b15df02011 (patch)
tree2e3bfe70b8a124e5cc4bcac4c2cc0604368893b7
parent1066f7e6e232bb1abc5f1e013fcf3da23d301fbf (diff)
downloadnextcloud-server-a20556193ca9cad8ea2817f0e5f1c1b15df02011.tar.gz
nextcloud-server-a20556193ca9cad8ea2817f0e5f1c1b15df02011.zip
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 <varunpatil@ucla.edu>
-rw-r--r--apps/dav/lib/Files/BrowserErrorPagePlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Files/BrowserErrorPagePlugin.php b/apps/dav/lib/Files/BrowserErrorPagePlugin.php
index b3ce591bd4a..eccae8afdd5 100644
--- a/apps/dav/lib/Files/BrowserErrorPagePlugin.php
+++ b/apps/dav/lib/Files/BrowserErrorPagePlugin.php
@@ -70,9 +70,9 @@ class BrowserErrorPagePlugin extends ServerPlugin {
}
/**
- * @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);