2
0
forked from Wavyzz/dolibarr

Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-21 17:42:31 +00:00
parent 47670f5f97
commit a62ef03fa9
23 changed files with 141 additions and 138 deletions

View File

@@ -151,7 +151,7 @@ function show_ldap_content($result,$level,$count,$var,$hide=0)
else
{
$newstring=@htmlentities($val,ENT_COMPAT,'UTF-8'); // Make entity encoding
if ($hide) print eregi_replace('.','*',$newstring);
if ($hide) print preg_replace('/./i','*',$newstring);
else print $newstring;
print '</td></tr>';
}