1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-23 17:42:15 -05:00

fix #138: change pattern to parse url with #

This commit is contained in:
Nicolas Lœuillet 2013-08-15 11:46:40 +02:00
parent 2021fc614e
commit 0b05568c9f

View File

@ -27,7 +27,7 @@ class Url
public function isCorrect() public function isCorrect()
{ {
$pattern = '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i'; $pattern = '|^(.*:)//([a-z\-.]+)(:[0-9]+)?(.*)$|i';
return preg_match($pattern, $this->url); return preg_match($pattern, $this->url);
} }