diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-08 17:53:29 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-08 17:53:29 +0200 |
commit | 7cbf2bc56df4519868e8694fd3ead4700aec7642 (patch) | |
tree | 7cb0cd132477bb3f038c1bfb0cab414fb50d850c /lib | |
parent | 73d38399624513ffcf5077abb6edfd1c3d3e1c14 (diff) | |
download | nextcloud-server-7cbf2bc56df4519868e8694fd3ead4700aec7642.tar.gz nextcloud-server-7cbf2bc56df4519868e8694fd3ead4700aec7642.zip |
Allow 0 and false as password
When we use the check for "empty" here passwords such as 0 will not work.
Fixes https://github.com/owncloud/password_policy/issues/8
Diffstat (limited to 'lib')
-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 { |