From e49b5c16c1450232fadc85fe26f4400ff61443c4 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 14 Mar 2023 15:04:43 +0100 Subject: [PATCH] Limitation dimension champs CSS et Script --- CHANGES.md | 1 + core/module/page/page.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ace579fa..cf7bc51b 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ ## Version 12.3.02 - Amélioration de l'obfuscation. +- Corrige la limitation de 500 caractères des scripts JS et du style CSS stockés avec la page. ## Version 12.3.01 ### Améliorations : diff --git a/core/module/page/page.php b/core/module/page/page.php index 52b525bc..e7b636b8 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -559,7 +559,7 @@ class page extends common // Mise à jour de la liste des pages pour TinyMCE $this->listPages(); - + // Valeurs en sortie $this->addOutput([ 'title' => $this->getData(['page', $this->getUrl(2), 'title']), @@ -578,7 +578,7 @@ class page extends common { // Soumission du formulaire if ($this->isPost()) { - $css = $this->getInput('pageCssEditorContent') === null ? '' : $this->getInput('pageCssEditorContent'); + $css = $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG); // Enregistre le CSS $this->setData([ 'page', $this->getUrl(2), @@ -609,7 +609,7 @@ class page extends common { // Soumission du formulaire if ($this->isPost()) { - $js = $this->getInput('pageJsEditorContent') === null ? '' : $this->getInput('pageJsEditorContent'); + $js = $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG); // Enregistre le JS $this->setData([ 'page', $this->getUrl(2),