Merge pull request #468 from nextcloud/stringid-fix
Cast share id to string (#25402)
This commit is contained in:
commit
ffc345b141
|
@ -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')))) {
|
||||
|
|
Loading…
Reference in New Issue