diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-27 17:09:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-27 20:36:31 +0100 |
commit | f5c45dfe7b2aecbeb9b7193ce14bc28511006d18 (patch) | |
tree | 43727dd7c6f87488904e7f9519a83dec72b0c5fd /apps/files_sharing/api | |
parent | b321ceef60d98f3c8224c6bacc402c1ec1d08920 (diff) | |
download | nextcloud-server-f5c45dfe7b2aecbeb9b7193ce14bc28511006d18.tar.gz nextcloud-server-f5c45dfe7b2aecbeb9b7193ce14bc28511006d18.zip |
[Share 2.0] Still allow isolated updates
Still allow isolated updates of parameters
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index d49ef7ad45f..48aca9b9c1b 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -456,9 +456,9 @@ class Share20OCS { } $permissions = $this->request->getParam('permissions', null); - $password = $this->request->getParam('password', ''); + $password = $this->request->getParam('password', null); $publicUpload = $this->request->getParam('publicUpload', null); - $expireDate = $this->request->getParam('expireDate', ''); + $expireDate = $this->request->getParam('expireDate', null); /* * expirationdate, password and publicUpload only make sense for link shares @@ -470,7 +470,7 @@ class Share20OCS { if ($expireDate === '') { $share->setExpirationDate(null); - } else { + } else if ($expireDate !== null) { try { $expireDate = $this->parseDate($expireDate); } catch (\Exception $e) { @@ -481,7 +481,7 @@ class Share20OCS { if ($password === '') { $share->setPassword(null); - } else { + } else if ($password !== null) { $share->setPassword($password); } |