Update security.php

This commit is contained in:
Namhyeon Go 2018-09-26 20:31:57 +09:00 committed by GitHub
parent 748d061fbe
commit 3826ff70d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ if(!function_exists("get_hashed_text")) {
// with salt
if(!array_key_empty("salt", $options)) {
if(!array_key_equals("2pass", $options, true)) {
if(!array_key_equals("2p", $options, true)) {
if($options['salt'] == true) {
$text .= get_salt();
} elseif(is_string($options['salt']) && $strlen($options['salt']) > 0) {
@ -189,8 +189,8 @@ if(!function_exists("get_hashed_text")) {
}
// with 2-pass
if(array_key_equals("2pass", $options, true)) {
$options['2pass'] = false;
if(array_key_equals("2p", $options, true)) {
$options['2p'] = false;
$text = get_hashed_text($text, $algo, $options);
}