diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-09 16:32:59 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-10 08:40:45 +0100 |
commit | 31cf3b8288583c8ea3f850286863070376304d54 (patch) | |
tree | bd8065dc16acbdad7c67a2b0652b88ef98d113be | |
parent | cb8024ca145e05614e9907e2e9102656eadb0d50 (diff) | |
download | nextcloud-server-31cf3b8288583c8ea3f850286863070376304d54.tar.gz nextcloud-server-31cf3b8288583c8ea3f850286863070376304d54.zip |
Make sure the share ID is an integer
-rw-r--r-- | apps/files_sharing/api/remote.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/api/remote.php b/apps/files_sharing/api/remote.php index 06b2e6c1687..4b7192994a7 100644 --- a/apps/files_sharing/api/remote.php +++ b/apps/files_sharing/api/remote.php @@ -63,7 +63,7 @@ class Remote { \OC_User::getUser() ); - if ($externalManager->acceptShare($params['id'])) { + if ($externalManager->acceptShare((int) $params['id'])) { return new \OC_OCS_Result(); } @@ -86,7 +86,7 @@ class Remote { \OC_User::getUser() ); - if ($externalManager->declineShare($params['id'])) { + if ($externalManager->declineShare((int) $params['id'])) { return new \OC_OCS_Result(); } |