From 91f1b19552b7a383fd3fa726c7bd73ca78dd0d09 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 11 Jul 2016 10:27:47 +0200 Subject: [PATCH] Cast share id to string (#25402) --- 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 f069a214fe8d..36da6492fb03 100644 --- a/apps/dav/lib/connector/publicauth.php +++ b/apps/dav/lib/connector/publicauth.php @@ -89,7 +89,7 @@ protected function validateUserPass($username, $password) { } 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;