diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-07-11 10:27:47 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-07-20 15:10:10 +0200 |
commit | e5c4f53eea6943ad4c1365e3ff97adbf789b5805 (patch) | |
tree | 66ca3336104a65c1953816256adadb6f26490931 /apps | |
parent | b37e1ed17f54916e3321427d92afa3f74ebea1b3 (diff) | |
download | nextcloud-server-e5c4f53eea6943ad4c1365e3ff97adbf789b5805.tar.gz nextcloud-server-e5c4f53eea6943ad4c1365e3ff97adbf789b5805.zip |
Cast share id to string (#25402)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Connector/PublicAuth.php | 2 |
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')))) { |