mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -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
|
@ -2,5 +2,7 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class InvalidMuseumUrlException extends InvalidUrlException{
|
||||
protected $message = 'Invalid link to an approved museum page.';
|
||||
public function __construct(string $url, string $exampleUrl){
|
||||
$this->message = 'Invalid museum URL: <' . $url . '>. Expected a URL like: <'. $exampleUrl . '>.';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue