From d59eeb80a1de8f81d21694c81f2c4964c448e5f8 Mon Sep 17 00:00:00 2001 From: Ansgar Hofmann Date: Mon, 10 Jun 2024 17:30:53 +0200 Subject: [PATCH] Bugfix: both parse_url() use the same flags 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. --- src/UrlGeneratorService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UrlGeneratorService.php b/src/UrlGeneratorService.php index 65779f5..06464ee 100644 --- a/src/UrlGeneratorService.php +++ b/src/UrlGeneratorService.php @@ -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; }