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:
parent
2021fc614e
commit
0b05568c9f
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user