Skip to content

Commit

Permalink
chore: check for existing scheme in parsed url
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed May 9, 2024
1 parent 02da2fa commit 20ac69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/ResponseListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function parseDomain(string $url): string
{
$urlParse = parse_url($url);

if (!isset($urlParse['host'])) {
if (!isset($urlParse['host'], $urlParse['scheme'])) {
return '';
}

Expand Down

0 comments on commit 20ac69b

Please sign in to comment.