mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Replace ' with ’ in placeholder titles
This commit is contained in:
parent
b5f0f22fa7
commit
89d0b2ea46
1 changed files with 3 additions and 0 deletions
|
@ -1190,6 +1190,9 @@ class Ebook{
|
||||||
$error->Add(new Exceptions\EbookTitleRequiredException());
|
$error->Add(new Exceptions\EbookTitleRequiredException());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sometimes placeholders may have `'` in the title.
|
||||||
|
$this->Title = str_replace('\'', '’', $this->Title);
|
||||||
|
|
||||||
if(strlen($this->Title) > EBOOKS_MAX_STRING_LENGTH){
|
if(strlen($this->Title) > EBOOKS_MAX_STRING_LENGTH){
|
||||||
$error->Add(new Exceptions\StringTooLongException('Ebook Title'));
|
$error->Add(new Exceptions\StringTooLongException('Ebook Title'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue