Skip to content

Commit ec1b1ae

Browse files
committed
Work on URL validation.
1 parent 1724dd5 commit ec1b1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Routing/UrlGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public function forceRootUrl($root)
485485
*/
486486
public function isValidUrl($path)
487487
{
488-
if (starts_with($path, array('#', '//', 'mailto:', 'tel:'))) return true;
488+
if (starts_with($path, ['#', '//', 'mailto:', 'tel:', 'http://', 'https://'])) return true;
489489

490490
return filter_var($path, FILTER_VALIDATE_URL) !== false;
491491
}

0 commit comments

Comments
 (0)