diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-23 19:04:06 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-24 11:33:07 +0200 |
commit | dcc8cce28b3c47dd7f6c1684fdb0793102164fb2 (patch) | |
tree | 1369d64b21d755ec6554e13b659194665fa5973a /lib | |
parent | 153d053ee7872fd6669ff082a8c651c5d389a5b0 (diff) | |
download | nextcloud-server-dcc8cce28b3c47dd7f6c1684fdb0793102164fb2.tar.gz nextcloud-server-dcc8cce28b3c47dd7f6c1684fdb0793102164fb2.zip |
Fix double hashing of shared link passwords
The plain text password for a shared links was hashed and, then, the
hashed password was hashed again and set as the final password. Due to
this the password introduced in the "Authenticate" page for the shared
link was always a wrong password, and thus the file could not be
accessed.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 3afd38c579f..7bed012fe8f 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -734,7 +734,7 @@ class Manager implements IManager { } $plainTextPassword = null; - if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK || $share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) { + if ($share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) { // Password updated. if ($share->getPassword() !== $originalShare->getPassword()) { //Verify the password |