diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-15 22:13:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 22:13:18 +0200 |
commit | 5d548e631b54795dfb67bce5e376a87f93979f33 (patch) | |
tree | faf290b947f36d3212b3e2cfb52554dc65a7bcd6 | |
parent | f20bef0eeca85eadc81cdf9aebfcac9b07988656 (diff) | |
parent | 045dd40ab12fba1be41c4466e143f13332fd5f7d (diff) | |
download | nextcloud-server-5d548e631b54795dfb67bce5e376a87f93979f33.tar.gz nextcloud-server-5d548e631b54795dfb67bce5e376a87f93979f33.zip |
Merge pull request #47979 from nextcloud/backport/47971/stable28
[stable28] 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 a2f47639e65..5287a8e1d5c 100644 --- a/lib/private/legacy/OC_Files.php +++ b/lib/private/legacy/OC_Files.php @@ -232,7 +232,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); |