BUG 9337 Hint with .commas. and/or "apostrophes" is not working SOLVED

- We verified that when is intruduced a character strange the string is cut.
- add sentence of escape to validate the string.
This commit is contained in:
Marco Antonio Nina
2012-06-27 18:49:09 -04:00
parent e6ba779f85
commit 3bef9014de
2 changed files with 7 additions and 3 deletions

View File

@@ -141,8 +141,11 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
if ($_POST['form']['XMLNODE_NAME']==='') return;
$attributes = $_POST['form'];
$attributes['HINT'] = addslashes($attributes['HINT']);
$attributes['HINT'] = htmlspecialchars($attributes['HINT'], ENT_QUOTES, "UTF-8");
if (isset($attributes['CODE'])) $attributes['XMLNODE_VALUE'] = ($attributes['CODE']);
$labels = array();