mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Add value check in museum URL normalization
This commit is contained in:
parent
b178bcb6fa
commit
e52e09c959
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ class Museum extends PropertiesBase{
|
|||
throw new Exceptions\InvalidUrlException($url);
|
||||
}
|
||||
|
||||
$parsedUrl['path'] = $parsedUrl['path'] ?? '';
|
||||
|
||||
// We can't match on TLD because extracting the TLD for double-barrel TLDs, like .gov.uk, requires a whitelist.
|
||||
|
||||
if(preg_match('/\brijksmuseum\.nl$/ius', $parsedUrl['host'])){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue