Update functions.php
This commit is contained in:
parent
fa88250f0e
commit
599d55700d
@ -2567,7 +2567,7 @@ function dn_unescape($dn) {
|
|||||||
foreach ($dn as $key => $rdn)
|
foreach ($dn as $key => $rdn)
|
||||||
$a[$key] = preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
|
$a[$key] = preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
|
||||||
function ($r) {
|
function ($r) {
|
||||||
return "''.chr(hexdec('$r[1]')).''";
|
return chr(hexdec($r[1]));
|
||||||
},
|
},
|
||||||
$rdn
|
$rdn
|
||||||
);
|
);
|
||||||
@ -2577,7 +2577,7 @@ function dn_unescape($dn) {
|
|||||||
} else {
|
} else {
|
||||||
return preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
|
return preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
|
||||||
function ($r) {
|
function ($r) {
|
||||||
return "''.chr(hexdec('$r[1]')).''";
|
return chr(hexdec($r[1]));
|
||||||
},
|
},
|
||||||
$dn
|
$dn
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user