Skip to content

Commit

Permalink
Bugfix: both parse_url() use the same flags
Browse files Browse the repository at this point in the history
Somehow I messed up the commit and removed `, PHP_URL_HOST` from the second `parse_url()`. This way, every call to `addSid()` returned the unchanged URL and disabled the whole package.
  • Loading branch information
anhofmann authored Jun 10, 2024
1 parent 84ca625 commit d59eeb8
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 d59eeb8

Please sign in to comment.