Skip to content

Commit

Permalink
[stable9] Fix of issue #23066
Browse files Browse the repository at this point in the history
backport of #652
  • Loading branch information
butonic authored Jun 28, 2016
1 parent 9d3cd61 commit b8217c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/envcheckmiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private function checkPassword($linkItem, $password) {
private function checkSession($linkItem) {
// Not authenticated ?
if (!$this->session->exists('public_link_authenticated')
|| $this->session->get('public_link_authenticated') !== $linkItem['id']
|| $this->session->get('public_link_authenticated') !== (string)$linkItem['id']
) {
throw new CheckException("Missing password", Http::STATUS_UNAUTHORIZED);
}
Expand Down

0 comments on commit b8217c0

Please sign in to comment.