Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
25513ba2
Commit
25513ba2
authored
Jul 01, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Nov 13, 2014
Browse files
Fixes #3190 html and smarty code should be escaped in read-only mode
parent
a5cf8c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_attribute.inc
View file @
25513ba2
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment