summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Helper.php
diff options
context:
space:
mode:
authorTorben Dannhauer <torben@dannhauer.de>2016-05-31 06:53:28 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-31 06:53:28 +0200
commit718f0757e497f58ddbd783e69227ce6987dff59f (patch)
treeb467c07995fdbe982e4ff8feae9c9bf11e5f7942 /apps/files_sharing/lib/Helper.php
parent76c0bc29fe2caaddce4e21b80b51781969287eb9 (diff)
downloadnextcloud-server-718f0757e497f58ddbd783e69227ce6987dff59f.tar.gz
nextcloud-server-718f0757e497f58ddbd783e69227ce6987dff59f.zip
Fix for #23066 (#24689)
Diffstat (limited to 'apps/files_sharing/lib/Helper.php')
-rw-r--r--apps/files_sharing/lib/Helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Helper.php b/apps/files_sharing/lib/Helper.php
index b6fc139c33d..e4640f82eb6 100644
--- a/apps/files_sharing/lib/Helper.php
+++ b/apps/files_sharing/lib/Helper.php
@@ -126,7 +126,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
@@ -156,7 +156,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;
}
}