mirror of
https://github.com/moparisthebest/wallabag
synced 2025-02-17 07:30:09 -05:00
Add IPv4 url support (and others beginning by a digit)
This commit is contained in:
parent
38b418b7d6
commit
7374ff30ef
@ -27,7 +27,7 @@ class Url
|
|||||||
|
|
||||||
public function isCorrect()
|
public function isCorrect()
|
||||||
{
|
{
|
||||||
$pattern = '|^(.*:)//([a-z\-.]+)(:[0-9]+)?(.*)$|i';
|
$pattern = '|^(.*:)//([a-z\-.\d]+)(:[0-9]+)?(.*)$|i';
|
||||||
|
|
||||||
return preg_match($pattern, $this->url);
|
return preg_match($pattern, $this->url);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user