mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Validate and normalize museum URLs when submitting artwork
This commit is contained in:
parent
9c27d80dd9
commit
16df5b29fe
9 changed files with 554 additions and 41 deletions
8
lib/Exceptions/InvalidPageScanUrlException.php
Normal file
8
lib/Exceptions/InvalidPageScanUrlException.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPageScanUrlException extends InvalidUrlException{
|
||||
public function __construct(string $url, string $exampleUrl){
|
||||
$this->message = 'Invalid page scan URL: <' . $url . '>. Expected a URL like: <'. $exampleUrl . '>.';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue