commit 73c8e9c5b22b37f9fe369f8a9dc2a421ee6da47b
parent 9c8b83ccb489a122c395b22e079d0a0143da49ff
Author: Jan Dankert <develop@jandankert.de>
Date: Mon, 18 Nov 2019 23:00:10 +0100
Fix: Allow all UTF-8 characters in default text.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/cms-core/action/ElementAction.class.php b/modules/cms-core/action/ElementAction.class.php
@@ -106,9 +106,9 @@ class ElementAction extends BaseAction
if ( $this->hasRequestVar('default_longtext'))
- $this->element->defaultText = $this->getRequestVar('default_longtext',OR_FILTER_RAW);
+ $this->element->defaultText = $this->getRequestVar('default_longtext',OR_FILTER_TEXT);
else
- $this->element->defaultText = $this->getRequestVar('default_text',OR_FILTER_ALPHANUM);
+ $this->element->defaultText = $this->getRequestVar('default_text',OR_FILTER_TEXT);
$this->element->subtype = $this->getRequestVar('subtype');
@@ -127,7 +127,7 @@ class ElementAction extends BaseAction
if ( $this->hasRequestVar('select_items'))
$this->element->code = $this->getRequestVar('select_items');
else
- $this->element->code = $this->getRequestVar('code' ,'raw');
+ $this->element->code = $this->getRequestVar('code' ,OR_FILTER_RAW);
if ( $this->hasRequestVar('name') )
$this->element->name = $this->getRequestVar('name');