diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-21 12:07:08 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-21 12:07:08 +0100 |
commit | a3ea5aa2ac85fea812e25e2578db4cf86a0d3418 (patch) | |
tree | 8f4cdc6f1b01d249086f5ad4432df2d3ab298c76 /lib/public/share.php | |
parent | 6746ad0a7315d1ee06f7b1804b7c9457755f6648 (diff) | |
download | nextcloud-server-a3ea5aa2ac85fea812e25e2578db4cf86a0d3418.tar.gz nextcloud-server-a3ea5aa2ac85fea812e25e2578db4cf86a0d3418.zip |
fixing comment + adding unit test for checkPasswordProtectedShare
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index ddc9e1e066f..f832d04a70f 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -365,7 +365,7 @@ class Share { return false; } - // password protected shares need to me authenticated + // password protected shares need to be authenticated if ($checkPasswordProtection && !\OCP\Share::checkPasswordProtectedShare($row)) { return false; } @@ -1907,6 +1907,12 @@ class Share { if (!isset($linkItem['share_with'])) { return true; } + if (!isset($linkItem['share_type'])) { + return true; + } + if (!isset($linkItem['id'])) { + return true; + } if ($linkItem['share_type'] != \OCP\Share::SHARE_TYPE_LINK) { return true; |