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:
@@ -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')) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user