Make sure the share ID is an integer

This commit is contained in:
Joas Schilling 2016-02-09 16:32:59 +01:00
parent cb8024ca14
commit 31cf3b8288
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}