Skip to content

Commit

Permalink
Merge pull request #366 from CauanCabral/patch-1
Browse files Browse the repository at this point in the history
Ensure $url['path'] exists before use
  • Loading branch information
markstory authored Apr 5, 2020
2 parents dc5f462 + 8a3f8fe commit ef51314
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public function getUnauthenticatedRedirectUrl(ServerRequestInterface $request):
$url['query'] = $query;
}
$fragment = isset($url['fragment']) ? '#' . $url['fragment'] : '';
$url['path'] = $url['path'] ?? '/';

return $url['path'] . '?' . $url['query'] . $fragment;
}
Expand Down

0 comments on commit ef51314

Please sign in to comment.