Skip to content

Commit 6dfffcf

Browse files
author
Vincent Petry
committed
[stable9.1] Cast share id to string (#25402)
1 parent 3de4dfb commit 6dfffcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/Connector/PublicAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function validateUserPass($username, $password) {
9898
if ($this->shareManager->checkPassword($share, $password)) {
9999
return true;
100100
} else if ($this->session->exists('public_link_authenticated')
101-
&& $this->session->get('public_link_authenticated') === $share->getId()) {
101+
&& $this->session->get('public_link_authenticated') === (string)$share->getId()) {
102102
return true;
103103
} else {
104104
if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {

0 commit comments

Comments
 (0)