mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Parse URL when checking for approved museums
This commit is contained in:
parent
60eb118524
commit
57ed9c5c1e
2 changed files with 10 additions and 3 deletions
|
@ -462,11 +462,11 @@ class Artwork extends PropertiesBase{
|
|||
$parsedUrl = parse_url($url);
|
||||
}
|
||||
catch(Exception){
|
||||
throw new InvalidUrlException($url);
|
||||
throw new Exceptions\InvalidUrlException($url);
|
||||
}
|
||||
|
||||
if(!is_array($parsedUrl)){
|
||||
throw new InvalidUrlException($url);
|
||||
throw new Exceptions\InvalidUrlException($url);
|
||||
}
|
||||
|
||||
if(stripos($parsedUrl['host'], 'hathitrust.org') !== false){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue