We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee93698 commit 0641d4aCopy full SHA for 0641d4a
src/Http/Url.php
@@ -654,6 +654,10 @@ function ($matches) {
654
throw new \InvalidArgumentException('Malformed URL: ' . $url);
655
}
656
657
+ if (empty($parts['scheme']) || !in_array($parts['scheme'], ['http', 'https'])) {
658
+ throw new \InvalidArgumentException(sprintf('Invalid URL scheme: "%s"', $parts['scheme']));
659
+ }
660
+
661
foreach ($parts as $name => $value) {
662
$parts[$name] = urldecode($value);
663
0 commit comments