fix: reading base64 config in SCF_file

pull/274/head
qkqpttgf 2021-03-28 16:24:25 +08:00 committed by GitHub
parent e83648a332
commit 32649ccc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ function getConfig($str, $disktag = '')
if (isInnerEnv($str)) {
if ($disktag=='') $disktag = $_SERVER['disktag'];
if (isset($envs[$disktag][$str])) {
if (in_array($str, $Base64Env)) return base64y_decode($envs[$disktag][$str]);
if (isBase64Env($str)) return base64y_decode($envs[$disktag][$str]);
else return $envs[$disktag][$str];
}
} else {
if (isset($envs[$str])) {
if (in_array($str, $Base64Env)) return base64y_decode($envs[$str]);
if (isBase64Env($str)) return base64y_decode($envs[$str]);
else return $envs[$str];
}
}