Problem with german Umlauts and safe_mailto in cms page editor
Hi,
I have a cms page where I have some contact data. The emailadresses are encoded via safe_mailto function.
Now I have one entry
safe_mailto("abc@test.de", "Wehrführung")
On saving the cms page the entry is transformed to
safe_mailto("abc@test.de", "Wehrführung")
On the frontend page then the text Wehrführung
is displayed instead of Wehrführung
.
I think this is because the browser doesn't get the html special char in safe_mailto encoded way, but interprets each single character.
Any idea how to solve this issue?
Comments
'sanitize_input' => array('template','php'),
The "template and "php" map to sanitization functions. The mapping is done by the 'module_sanitize_funcs' config function that you can modify as well to point to a different function:
// Functions that can be used for the sanitize_input value on a basic module. // The key of the array is what should be used when configuring your module $config['module_sanitize_funcs'] = array( 'xss' => 'xss_clean', 'php' => 'encode_php_tags', 'template' => 'php_to_template_syntax', 'entities' => 'htmlentities' );
You could additionally use a module overwrite to change the 'sanitize_input' parameters for the pages module:
http://docs.getfuelcms.com/modules/simple#overwrites
can u explain more widely, how to solve this problem?
require_once(FUEL_PATH.'models/fuel_pagevariables_model.php'); class My_pagevariables_model extends Fuel_pagevariables_model { public $auto_encode_entities = FALSE; }
And then you can create the overwrite as explained here:
http://docs.getfuelcms.com/modules/simple#overwrites