From 31cf3b8288583c8ea3f850286863070376304d54 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Feb 2016 16:32:59 +0100 Subject: [PATCH] Make sure the share ID is an integer --- apps/files_sharing/api/remote.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/api/remote.php b/apps/files_sharing/api/remote.php index 06b2e6c168..4b7192994a 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(); }