conversion des doubles quotes
This commit is contained in:
parent
85651cb4db
commit
64272d2c64
@ -633,6 +633,9 @@ class theme extends common {
|
||||
$fontName = $this->getInput('fontAddFontName', null, true);
|
||||
$fontFamilyName = $this->getInput('fontAddFontFamilyName', null, true);
|
||||
|
||||
// Remplace les doubles quotes par des simples quotes
|
||||
$fontFamilyName = str_replace('"', '\'', $fontFamilyName);
|
||||
|
||||
// Supprime la fonte si elle existe dans le type inverse
|
||||
if (is_array($this->getData(['fonts', $typeFlip, $fontId])) ) {
|
||||
$this->deleteData(['fonts', $typeFlip, $fontId ]);
|
||||
@ -683,6 +686,9 @@ class theme extends common {
|
||||
$fontName = $this->getInput('fontEditFontName', null , true);
|
||||
$fontFamilyName = $this->getInput('fontEditFontFamilyName', null, true);
|
||||
|
||||
// Remplace les doubles quotes par des simples quotes
|
||||
$fontFamilyName = str_replace('"', '\'', $fontFamilyName);
|
||||
|
||||
// Supprime la fonte si elle existe dans le type inverse
|
||||
if (is_array($this->getData(['fonts', $typeFlip, $fontId])) ) {
|
||||
$this->deleteData(['fonts', $typeFlip, $fontId ]);
|
||||
|
Loading…
Reference in New Issue
Block a user