Merge pull request #58525 from nextcloud/fix/fix-decryption-failure-false-positive

fix(encryption): Improve type strictness on decryption check
This commit is contained in:
Andy Scherzinger 2026-02-26 12:10:01 +01:00 committed by GitHub
commit 6df490942c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,7 +545,7 @@ class Crypt {
$options,
$iv);
if ($plainContent) {
if ($plainContent !== false) {
return $plainContent;
} else {
throw new DecryptionFailedException('Encryption library: Decryption (symmetric) of content failed: ' . openssl_error_string());