mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-22 14:48:08 +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()
|
||||
{
|
||||
$pattern = '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i';
|
||||
$pattern = '|^(.*:)//([a-z\-.]+)(:[0-9]+)?(.*)$|i';
|
||||
|
||||
return preg_match($pattern, $this->url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue