mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
functions.inc.php:
- PHP around 5.3.8 includes hex2bin as native function - http://php.net/hex2bin therefore we have to wrap our function (which fortunately gives the same results) with function_exists(). Reported by MadOtis on #postfixadmin git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1328 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
cb640c87c1
commit
19b9535e43
@ -1252,6 +1252,7 @@ function create_salt () {
|
||||
return $salt;
|
||||
}
|
||||
|
||||
/**/ if (!function_exists('hex2bin')) { # PHP around 5.3.8 includes hex2bin as native function - http://php.net/hex2bin
|
||||
function hex2bin ($str) {
|
||||
$len = strlen ($str);
|
||||
$nstr = "";
|
||||
@ -1261,6 +1262,7 @@ function hex2bin ($str) {
|
||||
}
|
||||
return $nstr;
|
||||
}
|
||||
/**/ }
|
||||
|
||||
function to64 ($v, $n) {
|
||||
$ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
Loading…
Reference in New Issue
Block a user