diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-07-13 14:34:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-07-13 14:34:52 +0200 |
commit | 0daddd5866e51d58d0467da9b492a8456c794859 (patch) | |
tree | 1510305de6eb88236f2671093ad81857d6ca35a9 /apps | |
parent | 92f49fbb395f494a639d481461fa6739600193c2 (diff) | |
download | nextcloud-server-0daddd5866e51d58d0467da9b492a8456c794859.tar.gz nextcloud-server-0daddd5866e51d58d0467da9b492a8456c794859.zip |
[stable9.1] Cast share id to string (#25402) (#25432)
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 4e63ca1d29e..201e5b22ee5 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')))) { |