From 36c5b2d69cb6f3ce608711d1b6ff004e5bbc0272 Mon Sep 17 00:00:00 2001 From: frederic34 Date: Mon, 28 Jul 2014 14:04:55 +0200 Subject: [PATCH] Update html.form.class.php By example, avoid to have html code in customer name --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 25f708e8c37..8cb0a344e43 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4093,7 +4093,7 @@ class Form $ret.='
'; } - $ret.=$object->$fieldref; + $ret.=dol_htmlentities($object->$fieldref); if ($morehtmlref) { $ret.=' '.$morehtmlref;