summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2016-07-20 20:06:46 +0200
committerGitHub <noreply@github.com>2016-07-20 20:06:46 +0200
commitffc345b141d73b15a2dfe9830dea70cdb8c26ebe (patch)
tree34dc36475ac9e5377e28d4357d6003a37bc24962 /apps
parent032e6b1701dd4a8d674923feb3962ee49fdb7c77 (diff)
parente5c4f53eea6943ad4c1365e3ff97adbf789b5805 (diff)
downloadnextcloud-server-ffc345b141d73b15a2dfe9830dea70cdb8c26ebe.tar.gz
nextcloud-server-ffc345b141d73b15a2dfe9830dea70cdb8c26ebe.zip
Merge pull request #468 from nextcloud/stringid-fix
Cast share id to string (#25402)
Diffstat (limited to 'apps')
-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 9b386c7609d..38d91f086c7 100644
--- a/apps/dav/lib/Connector/PublicAuth.php
+++ b/apps/dav/lib/Connector/PublicAuth.php
@@ -98,7 +98,7 @@ class PublicAuth extends AbstractBasic {
if ($this->shareManager->checkPassword($share, $password)) {
return true;
} else if ($this->session->exists('public_link_authenticated')
- && $this->session->get('public_link_authenticated') === $share->getId()) {
+ && $this->session->get('public_link_authenticated') === (string)$share->getId()) {
return true;
} else {
if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {