mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #30160 from nextcloud/bugfix/noid/encryption-wrapper-fclose-check
This commit is contained in:
commit
c019e33b99
1 changed files with 6 additions and 2 deletions
|
|
@ -784,8 +784,12 @@ class Encryption extends Wrapper {
|
|||
fclose($source);
|
||||
fclose($target);
|
||||
} catch (\Exception $e) {
|
||||
fclose($source);
|
||||
fclose($target);
|
||||
if (is_resource($source)) {
|
||||
fclose($source);
|
||||
}
|
||||
if (is_resource($target)) {
|
||||
fclose($target);
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
if ($result) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue