diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-09-15 09:45:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 09:45:08 +0200 |
commit | 9b4637b09a004a78b4c9d8df707a8fb197c77162 (patch) | |
tree | 256634bb17fd78209f4852fe94409849a6f268a1 /lib | |
parent | 653055372074e8972d3a002fcc90cce50242343d (diff) | |
parent | 66f903b5f6d14eba766b817f51cda94f61a092f1 (diff) | |
download | nextcloud-server-9b4637b09a004a78b4c9d8df707a8fb197c77162.tar.gz nextcloud-server-9b4637b09a004a78b4c9d8df707a8fb197c77162.zip |
Merge pull request #47980 from nextcloud/backport/47971/stable29
[stable29] fix: Do not try to set HTTP response code on already closed connection
Diffstat (limited to 'lib')
-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 1b2f83941c8..b8eb6fe1ed0 100644 --- a/lib/private/legacy/OC_Files.php +++ b/lib/private/legacy/OC_Files.php @@ -233,7 +233,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); |