瀏覽代碼

Allow the use of any character into the help text on an attribute (usefull to explain a constraint implemented as a regular expression for instance.) Reminder: the text is given as a dictionary entry named like "Class:<class>/Attribute:<attcode>?"

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3166 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 年之前
父節點
當前提交
ce571f79d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/cmdbabstract.class.inc.php

+ 1 - 1
application/cmdbabstract.class.inc.php

@@ -1571,7 +1571,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
 				$bMandatory = 'true';
 			}
 			$sValidationField = "<span class=\"form_validation\" id=\"v_{$iId}\"></span>";
-			$sHelpText = $oAttDef->GetHelpOnEdition();
+			$sHelpText = htmlentities($oAttDef->GetHelpOnEdition(), ENT_QUOTES, 'UTF-8');
 			$aEventsList = array();
 			switch($oAttDef->GetEditClass())
 			{