Skip to content

Commit

Permalink
Merge pull request #20 from anhofmann/master
Browse files Browse the repository at this point in the history
Bugfix: both parse_url() use the same flags
  • Loading branch information
amenk committed Jun 10, 2024
2 parents 84ca625 + d59eeb8 commit 663bbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UrlGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private function addSid(string $url, ?\Illuminate\Routing\Route $route = null):
}

// Don't expose sessionID to other Domains
if(parse_url($url, PHP_URL_HOST) != parse_url(\Config::get('app.url'))) {
if(parse_url($url, PHP_URL_HOST) != parse_url(\Config::get('app.url'), PHP_URL_HOST)) {
return $url;
}

Expand Down

0 comments on commit 663bbad

Please sign in to comment.