mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
(Retrofit from deveop ab1715ed) N°1576 Portal: Security hardening.
This commit is contained in:
committed by
Molkobain
parent
fcb6a4069a
commit
e3e416b467
@@ -29,6 +29,8 @@ use \Combodo\iTop\Form\Field\TextField;
|
||||
* Description of TextAreaField
|
||||
*
|
||||
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
|
||||
* @package \Combodo\iTop\Form\Field
|
||||
* @since 2.3.0
|
||||
*/
|
||||
class TextAreaField extends TextField
|
||||
{
|
||||
@@ -113,7 +115,7 @@ class TextAreaField extends TextField
|
||||
{
|
||||
if ($this->GetFormat() == TextAreaField::ENUM_FORMAT_TEXT)
|
||||
{
|
||||
$sValue = $this->GetCurrentValue();
|
||||
$sValue = \Str::pure2html($this->GetCurrentValue());
|
||||
$sValue = AttributeText::RenderWikiHtml($sValue);
|
||||
return "<div>".str_replace("\n", "<br>\n", $sValue).'</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user