From 336b7ea36d7946b2bedc2a4ec879a20b34599723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 2 Jan 2024 16:02:41 +0100 Subject: [PATCH] fix: Skip CSP setup on CLI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/AppInfo/Application.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 081ccc7c..3e04d975 100755 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -123,6 +123,10 @@ public function registerProvider() { } public function updateCSP() { + if (\OC::$CLI) { + return; + } + $container = $this->getContainer(); $publicWopiUrl = \OC::$server->getConfig()->getAppValue('officeonline', 'wopi_url');