Commit 5d63d5ad authored by Taylor Otwell's avatar Taylor Otwell

Consider protocoless URLs as valid. Closes. #1966.

parent 1fdd186d
......@@ -355,6 +355,8 @@ class URL {
*/
public static function valid($url)
{
if (starts_with($url, '//')) return true;
return filter_var($url, FILTER_VALIDATE_URL) !== false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment