Consider protocoless URLs as valid. Closes. #1966.
This commit is contained in:
parent
1fdd186dde
commit
5d63d5ad52
|
@ -355,6 +355,8 @@ public static function transpose($uri, $parameters)
|
|||
*/
|
||||
public static function valid($url)
|
||||
{
|
||||
if (starts_with($url, '//')) return true;
|
||||
|
||||
return filter_var($url, FILTER_VALIDATE_URL) !== false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue