aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-15 11:46:40 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-15 11:46:40 +0200
commit0b05568c9f5901d87ad2125e7997c38dad070461 (patch)
tree93d0815512d4995da42ed6d2493dc6d3d1c823b8 /inc
parent2021fc614e35ab494032f717c922ece7919a7c13 (diff)
downloadwallabag-0b05568c9f5901d87ad2125e7997c38dad070461.tar.gz
wallabag-0b05568c9f5901d87ad2125e7997c38dad070461.tar.zst
wallabag-0b05568c9f5901d87ad2125e7997c38dad070461.zip
fix #138: change pattern to parse url with #
Diffstat (limited to 'inc')
-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 }