]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add IPv4 url support (and others beginning by a digit) 174/head
authornicofrand <nicofrand@gmail.com>
Sat, 24 Aug 2013 14:50:28 +0000 (16:50 +0200)
committernicofrand <nicofrand@gmail.com>
Sat, 24 Aug 2013 14:50:28 +0000 (16:50 +0200)
inc/poche/Url.class.php

index 302700a9c52647a494f04bf1d7711730f916b570..d7ee911fcbbf5c8287ff72a68edd2d98bdb74ec9 100644 (file)
@@ -27,7 +27,7 @@ class Url
 
     public function isCorrect()
     {
-        return filter_var($this->url, FILTER_VALIDATE_URL);
+        return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE;
     }
 
     public function clean()