Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-01-11 22:43:52 +0300
committerbrantje <brantje@gmail.com>2017-01-11 22:43:52 +0300
commitd4600833ab4a129e4a9b198bdcae64898ba24752 (patch)
tree856bb56cd026fc103dc382d03e8a911b88b3eff6 /lib
parent5f7661659aa3fec1b13c981b994dc402d31ab546 (diff)
Fix for uploading files
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/EncryptService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/EncryptService.php b/lib/Service/EncryptService.php
index b0033b4e..31cc3448 100644
--- a/lib/Service/EncryptService.php
+++ b/lib/Service/EncryptService.php
@@ -372,7 +372,7 @@ class EncryptService {
$userKey = '';
$userSuppliedKey = '';
if ($file instanceof File) {
- $userSuppliedKey = $file->getFilename();
+ $userSuppliedKey = $file->getSize();
$userKey = md5($file->getMimetype());
}