diff --git a/include/utils/VtlibUtils.php b/include/utils/VtlibUtils.php index d9deda0544268fd62408b0b7292d51efec769ba0..cc65a9ba6a8a8e1053ce4eab376899cd5bba25a1 100644 --- a/include/utils/VtlibUtils.php +++ b/include/utils/VtlibUtils.php @@ -530,13 +530,6 @@ function vtlib_tosingular($text) { return $text; } -/** - * Helps to remove HTML tags and attributes. - */ -function vtlib_strip_tagattrs($str) { - return preg_replace('/=/', '-', strip_tags($str)); -} - /** * Get picklist values that is accessible by all roles. */ diff --git a/modules/Users/Users.php b/modules/Users/Users.php index 4c1559fab546fe54720fed2e6fda3866c13e98e0..b88c9f8dc80954a434a3bfd912e5f44acd5a69dd 100755 --- a/modules/Users/Users.php +++ b/modules/Users/Users.php @@ -779,7 +779,7 @@ class Users extends CRMEntity { } $userlabel = trim(decode_html($userlabel)); - $this->column_fields['userlabel'] = vtlib_strip_tagattrs($userlabel); + $this->column_fields['userlabel'] = vtlib_strip_quoted(strip_tags($userlabel)); } if($insertion_mode == 'edit') {