Commit 25513ba2 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3190 html and smarty code should be escaped in read-only mode

parent a5cf8c12
......@@ -460,7 +460,7 @@ class Attribute
{
if ($this->visible) {
if ($readOnly) {
$input = $this->getValue();
$input = '{literal}'.htmlentities($this->getValue(), ENT_COMPAT, 'UTF-8').'{/literal}';
} elseif (is_object($this->plugin) && $this->plugin->is_template) {
$input = $this->renderTemplateInput();
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment