Limitation dimension champs CSS et Script

This commit is contained in:
Fred Tempez 2023-03-14 15:04:43 +01:00
parent df24c95a5d
commit e49b5c16c1
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
## Version 12.3.02 ## Version 12.3.02
- Amélioration de l'obfuscation. - 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 ## Version 12.3.01
### Améliorations : ### Améliorations :

View File

@ -559,7 +559,7 @@ class page extends common
// Mise à jour de la liste des pages pour TinyMCE // Mise à jour de la liste des pages pour TinyMCE
$this->listPages(); $this->listPages();
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'title' => $this->getData(['page', $this->getUrl(2), 'title']), 'title' => $this->getData(['page', $this->getUrl(2), 'title']),
@ -578,7 +578,7 @@ class page extends common
{ {
// Soumission du formulaire // Soumission du formulaire
if ($this->isPost()) { 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 // Enregistre le CSS
$this->setData([ $this->setData([
'page', $this->getUrl(2), 'page', $this->getUrl(2),
@ -609,7 +609,7 @@ class page extends common
{ {
// Soumission du formulaire // Soumission du formulaire
if ($this->isPost()) { 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 // Enregistre le JS
$this->setData([ $this->setData([
'page', $this->getUrl(2), 'page', $this->getUrl(2),