Skip to content

Commit

Permalink
Cast share id to string (#25402)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Jul 13, 2016
1 parent d106335 commit 91f1b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/connector/publicauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function validateUserPass($username, $password) {
}
return true;
} else if (\OC::$server->getSession()->exists('public_link_authenticated')
&& \OC::$server->getSession()->get('public_link_authenticated') === $linkItem['id']) {
&& \OC::$server->getSession()->get('public_link_authenticated') === (string)$linkItem['id']) {
return true;
} else {
return false;
Expand Down

0 comments on commit 91f1b19

Please sign in to comment.