diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-01 18:48:35 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-01 18:48:35 +0300 |
commit | 8f04bf37939db43ee0e88503be41ee6243621a0c (patch) | |
tree | 4df64820e09e63c72ef127134472aadca63b86c7 /apps | |
parent | 96bf7f5513616d0320c96911eedd5d0d7b606ab2 (diff) |
Backport of share id as string fix
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/helper.php b/apps/files_sharing/lib/helper.php index e857974ae74..ee6af9939ed 100644 --- a/apps/files_sharing/lib/helper.php +++ b/apps/files_sharing/lib/helper.php @@ -131,7 +131,7 @@ class Helper { $newHash = ''; if(\OC::$server->getHasher()->verify($password, $linkItem['share_with'], $newHash)) { // Save item id in session for future requests - \OC::$server->getSession()->set('public_link_authenticated', $linkItem['id']); + \OC::$server->getSession()->set('public_link_authenticated', (string) $linkItem['id']); /** * FIXME: Migrate old hashes to new hash format @@ -161,7 +161,7 @@ class Helper { else { // not authenticated ? if ( ! \OC::$server->getSession()->exists('public_link_authenticated') - || \OC::$server->getSession()->get('public_link_authenticated') !== $linkItem['id']) { + || \OC::$server->getSession()->get('public_link_authenticated') !== (string)$linkItem['id']) { return false; } } |