diff options
Diffstat (limited to 'inc/poche/Url.class.php')
-rw-r--r-- | inc/poche/Url.class.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php index b73f3a46..302700a9 100644 --- a/inc/poche/Url.class.php +++ b/inc/poche/Url.class.php | |||
@@ -27,9 +27,7 @@ class Url | |||
27 | 27 | ||
28 | public function isCorrect() | 28 | public function isCorrect() |
29 | { | 29 | { |
30 | $pattern = '|^(.*:)//([a-z\-.\d]+)(:[0-9]+)?(.*)$|i'; | 30 | return filter_var($this->url, FILTER_VALIDATE_URL); |
31 | |||
32 | return preg_match($pattern, $this->url); | ||
33 | } | 31 | } |
34 | 32 | ||
35 | public function clean() | 33 | public function clean() |