aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Url.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-17 11:27:13 -0700
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-17 11:27:13 -0700
commit7ba37bd91a43321196e6d867caf9e298e82c6d6c (patch)
tree280b6c5d270c28457219859f189e3cb6c3895939 /inc/poche/Url.class.php
parent667009727a38890eb651815843c1bc02869a4119 (diff)
parent9067b484ce8289eec6979cf6c8e3cbfb3bd5b10c (diff)
downloadwallabag-7ba37bd91a43321196e6d867caf9e298e82c6d6c.tar.gz
wallabag-7ba37bd91a43321196e6d867caf9e298e82c6d6c.tar.zst
wallabag-7ba37bd91a43321196e6d867caf9e298e82c6d6c.zip
Merge pull request #141 from inthepoche/dev1.0-beta3
beta3
Diffstat (limited to 'inc/poche/Url.class.php')
-rw-r--r--inc/poche/Url.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php
index f4a8f99e..00b0b257 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 $pattern = '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i'; 30 $pattern = '|^(.*:)//([a-z\-.]+)(:[0-9]+)?(.*)$|i';
31 31
32 return preg_match($pattern, $this->url); 32 return preg_match($pattern, $this->url);
33 } 33 }