Fix incorrect function call

This commit is contained in:
Julio Cesar Laura Avendaño
2018-05-10 16:20:38 -04:00
parent 4c30fb217d
commit 3d8fe0f6d3

View File

@@ -450,7 +450,7 @@ function custom_ldap_explode_dn($dn)
unset($result["count"]);
foreach ($result as $key => $value) {
$result[$key] = addcslashes(preg_replace("/\\\([0-9A-Fa-f]{2})/", function ($m) {
$result[$key] = addcslashes(preg_replace_callback("/\\\([0-9A-Fa-f]{2})/", function ($m) {
return chr(hexdec($m[1]));
}, $value), '<>,"');
}