mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 00:51:10 -04:00
Merge pull request #11783 from suntorytimed/stable14
[stable14] backport of #10778
This commit is contained in:
commit
cdca81b966
1 changed files with 4 additions and 0 deletions
|
|
@ -457,6 +457,10 @@ class Crypt {
|
|||
* @throws DecryptionFailedException
|
||||
*/
|
||||
public function symmetricDecryptFileContent($keyFileContents, $passPhrase, $cipher = self::DEFAULT_CIPHER, $version = 0, $position = 0) {
|
||||
if ($keyFileContents == '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
$catFile = $this->splitMetaData($keyFileContents, $cipher);
|
||||
|
||||
if ($catFile['signature'] !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue