diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-09-09 10:29:29 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-09-09 10:29:29 +0200 |
commit | acee9d4750657cd8b48c92990b0200ae29f3fa8f (patch) | |
tree | 16fd5b4991140665c4215e832231f806767e55d2 | |
parent | bf01c3d72af1db12bd4bb1a2333d0b716a9a11ed (diff) | |
parent | 7cbf2bc56df4519868e8694fd3ead4700aec7642 (diff) | |
download | nextcloud-server-acee9d4750657cd8b48c92990b0200ae29f3fa8f.tar.gz nextcloud-server-acee9d4750657cd8b48c92990b0200ae29f3fa8f.zip |
Merge pull request #18908 from owncloud/allow-0-as-password
Allow 0 and false as password
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 70ed26c0b27..6ad36d60fe8 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -765,7 +765,7 @@ class Share extends Constants { } // Generate hash of password - same method as user passwords - if (!empty($shareWith)) { + if (is_string($shareWith) && $shareWith !== '') { self::verifyPassword($shareWith); $shareWith = \OC::$server->getHasher()->hash($shareWith); } else { |