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

@@ -182,8 +182,9 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
if( isset($Fields['PME_HINT']) ) {
$Fields['PME_HINT'] = str_replace("\'", "'", $Fields['PME_HINT']);
$Fields['PME_HINT'] = str_replace("&", "&", $Fields['PME_HINT']);
$Fields['PME_HINT'] = stripslashes($Fields['PME_HINT']);
$Fields['PME_HINT'] = htmlspecialchars_decode($Fields['PME_HINT']);
$Fields['PME_HINT'] = str_replace("'", "'", $Fields['PME_HINT']);
}
if (file_exists( PATH_XMLFORM . 'dynaforms/fields/' . $type . '.xml')) {