Replace ' with ’ in placeholder titles

This commit is contained in:
Alex Cabal 2024-12-13 12:24:29 -06:00
parent b5f0f22fa7
commit 89d0b2ea46

View file

@ -1190,6 +1190,9 @@ class Ebook{
$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){
$error->Add(new Exceptions\StringTooLongException('Ebook Title'));
}