mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-31 18:31:02 +00:00
fix #138: change pattern to parse url with #
This commit is contained in:
parent
2021fc614e
commit
0b05568c9f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue