diff --git a/src/UrlGeneratorService.php b/src/UrlGeneratorService.php index 06464ee..d0fee81 100644 --- a/src/UrlGeneratorService.php +++ b/src/UrlGeneratorService.php @@ -14,7 +14,8 @@ 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'), PHP_URL_HOST)) { + $host = parse_url($url, PHP_URL_HOST); + if($host && $host != parse_url(\Config::get('app.url'), PHP_URL_HOST)) { return $url; }