Update security.php

This commit is contained in:
Namhyeon Go 2018-09-26 20:27:32 +09:00 committed by GitHub
parent 7c1f6c4303
commit 5925e142ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,11 +178,16 @@ if(!function_exists("get_hashed_text")) {
$hashed_text = false;
if(!array_key_empty("salt", $options)) {
if(!array_key_equals("salt2p", $options, true)) {
if($options['salt'] == true) {
$text .= get_salt();
} elseif(is_string($options['salt']) && $strlen($options['salt']) > 0) {
$text . = $options['salt'];
}
} else {
$options['salt2p'] = false;
$text = get_hashed_text($text, $algo, $options);
}
}
switch($algo) {