Commit 595d4b7b authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixed a bit DisplayLDAP attributes

parent 57858c51
......@@ -873,7 +873,7 @@ class DisplayLDAPAttribute extends Attribute
{
function renderFormInput ()
{
return $this->getValue();
return htmlentities($this->getValue(), ENT_COMPAT, 'UTF-8');
}
}
......@@ -897,7 +897,11 @@ class DisplayLDAPArrayAttribute extends Attribute
function renderFormInput ()
{
return join(', ', $this->getValue());
$value = $this->getValue();
if (is_array($value)) {
$value = join(', ', $value);
}
return htmlentities($value, ENT_COMPAT, 'UTF-8');
}
}
......
Markdown is supported
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