Merge pull request #18908 from owncloud/allow-0-as-password

Allow 0 and false as password
This commit is contained in:
Björn Schießle 2015-09-09 10:29:29 +02:00
commit acee9d4750

View file

@ -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 {