From 96e2a3a4b27c35beb0ca640ef99a0c0d77b36ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 13 Jul 2016 14:35:28 +0200 Subject: [PATCH] Cast share id to string (#25402) (#25431) --- apps/dav/lib/connector/publicauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/connector/publicauth.php b/apps/dav/lib/connector/publicauth.php index f069a214fe..36da6492fb 100644 --- a/apps/dav/lib/connector/publicauth.php +++ b/apps/dav/lib/connector/publicauth.php @@ -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;