Debug v16. Fix non escaping for commobject field text

This commit is contained in:
Laurent Destailleur
2022-08-02 21:12:09 +02:00
parent 3f5b3020b0
commit eda2b0dd71
2 changed files with 7 additions and 7 deletions

View File

@@ -7765,12 +7765,12 @@ abstract class CommonObject
} else {
$value = '';
}
} elseif (preg_match('/^(text|html)/', $type)) {
$value = dol_htmlentitiesbr($value);
} elseif ($type == 'password') {
$value = preg_replace('/./i', '*', $value);
} elseif ($type == 'array') {
$value = implode('<br>', $value);
} else { // text|html|varchar
$value = dol_htmlentitiesbr($value);
}
//print $type.'-'.$size.'-'.$value;