Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-07-13 15:35:28 +0300
committerVincent Petry <pvince81@owncloud.com>2016-07-13 15:35:28 +0300
commitec2e6ce202c2af79fa911ebb61a04af9d9f67b01 (patch)
treec9d72731c0adf46cbfc13f5033ea24f7c19a3a6b
parent1f57e2fbbdc0a0f8c16590c4849af39028b047c1 (diff)
Cast share id to string (#25402) (#25431)
-rw-r--r--apps/dav/lib/connector/publicauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/connector/publicauth.php b/apps/dav/lib/connector/publicauth.php
index f069a214fe8..36da6492fb0 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;