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 fd72dca commit 2c2bbb8Copy full SHA for 2c2bbb8
src/Url.php
@@ -436,8 +436,8 @@ protected function buildUrl()
436
*/
437
protected function parseUrl($url)
438
{
439
- if (strpos($url, '//') === 0) {
440
- $url = "http:$url";
+ if (!filter_var($url, FILTER_VALIDATE_URL)) {
+ throw new Exceptions\InvalidUrlException("The url '{$url}' is not valid");
441
}
442
443
$this->info = parse_url($url);
0 commit comments