mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-23 14:06:18 +00:00
Add IPv4 url support (and others beginning by a digit)
This commit is contained in:
parent
38b95e7be9
commit
149df445d6
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Url
|
||||||
|
|
||||||
public function isCorrect()
|
public function isCorrect()
|
||||||
{
|
{
|
||||||
return filter_var($this->url, FILTER_VALIDATE_URL);
|
return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clean()
|
public function clean()
|
||||||
|
|
Loading…
Reference in a new issue