Consider protocoless URLs as valid. Closes. #1966.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user