diff options
author | nicofrand <nicofrand@gmail.com> | 2013-08-24 16:50:28 +0200 |
---|---|---|
committer | nicofrand <nicofrand@gmail.com> | 2013-08-24 16:50:28 +0200 |
commit | 149df445d6a13317bf0777e042230ff3386243a8 (patch) | |
tree | fba0652485cb9f6d1820a14b28cdff3a0a705f9f /inc | |
parent | 38b95e7be9ce68a86c50486462bee485419a67a8 (diff) | |
download | wallabag-149df445d6a13317bf0777e042230ff3386243a8.tar.gz wallabag-149df445d6a13317bf0777e042230ff3386243a8.tar.zst wallabag-149df445d6a13317bf0777e042230ff3386243a8.zip |
Add IPv4 url support (and others beginning by a digit)
Diffstat (limited to 'inc')
-rw-r--r-- | inc/poche/Url.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php index 302700a9..d7ee911f 100644 --- a/inc/poche/Url.class.php +++ b/inc/poche/Url.class.php | |||
@@ -27,7 +27,7 @@ class Url | |||
27 | 27 | ||
28 | public function isCorrect() | 28 | public function isCorrect() |
29 | { | 29 | { |
30 | return filter_var($this->url, FILTER_VALIDATE_URL); | 30 | return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE; |
31 | } | 31 | } |
32 | 32 | ||
33 | public function clean() | 33 | public function clean() |