Merge pull request #37 from mr-GreyWolf/patch-1

Update functions.php
This commit is contained in:
Deon George 2016-10-30 16:53:05 +08:00 committed by GitHub
commit 708bc5ed83

View File

@ -2584,7 +2584,7 @@ function dn_unescape($dn) {
foreach ($dn as $key => $rdn)
$a[$key] = preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
function ($r) {
return "''.chr(hexdec('$r[1]')).''";
return chr(hexdec($r[1]));
},
$rdn
);
@ -2594,7 +2594,7 @@ function dn_unescape($dn) {
} else {
return preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',
function ($r) {
return "''.chr(hexdec('$r[1]')).''";
return chr(hexdec($r[1]));
},
$dn
);