Update security.php

This commit is contained in:
Namhyeon Go 2018-03-07 11:28:10 +09:00 committed by GitHub
parent 722ae2eb41
commit 2cad20a2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,9 +199,11 @@ if(!function_exists("get_salt")) {
function get_salt() { function get_salt() {
global $config; global $config;
$salt = "H6hclwzFplRQw39C"; $salt = "";
if(!array_key_empty("salt", $config)) { if(!array_key_empty("salt", $config)) {
$salt = $config['salt']; $salt = $config['salt'];
} else {
$salt = make_random_id(16);
} }
return $salt; return $salt;