From 9e229a5afeee77ce7fa5866b533ccdd02d201a5d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 21 Mar 2022 11:37:45 +0100 Subject: [PATCH] Nom de la famille de fonte, suppressio du filtre short string --- core/module/theme/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 437b0a5a..73eb6b9d 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -625,7 +625,7 @@ class theme extends common { $ressource = $type === 'imported' ? $this->getInput('fontAddUrl', helper::FILTER_STRING_SHORT) : $this->getInput('fontAddFile', helper::FILTER_STRING_SHORT); $fontId = $this->getInput('fontAddFontId', helper::FILTER_STRING_SHORT, true); $fontName = $this->getInput('fontAddFontName', helper::FILTER_STRING_SHORT, true); - $fontFamilyName = $this->getInput('fontAddFontFamilyName', helper::FILTER_STRING_SHORT, true); + $fontFamilyName = $this->getInput('fontAddFontFamilyName', null, true); // Supprime la fonte si elle existe dans le type inverse if (is_array($this->getData(['fonts', $typeFlip, $fontId])) ) { @@ -675,7 +675,7 @@ class theme extends common { $ressource = $type === 'imported' ? $this->getInput('fontEditUrl', helper::FILTER_STRING_SHORT) : $this->getInput('fontEditFile', helper::FILTER_STRING_SHORT); $fontId = $this->getInput('fontEditFontId', helper::FILTER_STRING_SHORT, true); $fontName = $this->getInput('fontEditFontName', helper::FILTER_STRING_SHORT, true); - $fontFamilyName = $this->getInput('fontEditFontFamilyName', helper::FILTER_STRING_SHORT, true); + $fontFamilyName = $this->getInput('fontEditFontFamilyName', null, true); // Supprime la fonte si elle existe dans le type inverse if (is_array($this->getData(['fonts', $typeFlip, $fontId])) ) {