Merge pull request #469 from nextcloud/stable9-stringid-fix

[stable9] Cast share id to string (#25402) (#25431)
This commit is contained in:
Lukas Reschke 2016-07-20 16:49:19 +02:00 committed by GitHub
commit 87eb86902f
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class PublicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
}
return true;
} else 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 true;
} else {
return false;