diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-09-15 09:45:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 09:45:00 +0200 |
commit | f2deb7710aad128636b88ed484071148867f3bf6 (patch) | |
tree | 9f3c9efc4878bb6e6ef968bb427d871ff7ac81e8 | |
parent | fbfead385938327620df668845ff74c86b5ad478 (diff) | |
parent | 6779729174acd4f872967ae0482a1701f3a1dd83 (diff) | |
download | nextcloud-server-f2deb7710aad128636b88ed484071148867f3bf6.tar.gz nextcloud-server-f2deb7710aad128636b88ed484071148867f3bf6.zip |
Merge pull request #47981 from nextcloud/backport/47971/stable30
[stable30] fix: Do not try to set HTTP response code on already closed connection
-rw-r--r-- | lib/private/legacy/OC_Files.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php index 76d61a98558..9870787e6f6 100644 --- a/lib/private/legacy/OC_Files.php +++ b/lib/private/legacy/OC_Files.php @@ -198,7 +198,8 @@ class OC_Files { } catch (\OCP\Files\ConnectionLostException $ex) { self::unlockAllTheFiles($dir, $files, $getType, $view, $filename); OC::$server->getLogger()->logException($ex, ['level' => \OCP\ILogger::DEBUG]); - \OC_Template::printErrorPage('Connection lost', $ex->getMessage(), 200); + /* We do not print anything here, the connection is already closed */ + die(); } catch (\Exception $ex) { self::unlockAllTheFiles($dir, $files, $getType, $view, $filename); OC::$server->getLogger()->logException($ex); |