Cast share id to string (#25402) (#25431)

This commit is contained in:
Thomas Müller 2016-07-13 14:35:28 +02:00 committed by Lukas Reschke
parent 2e6f7a66cf
commit 96e2a3a4b2
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
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;