update: fix config save

This commit is contained in:
tokumeikoi 2022-05-10 01:07:12 +08:00
parent 9d9c977ff1
commit 512c48adeb

View File

@ -171,7 +171,7 @@ class ConfigController extends Controller
{
$data = $request->validated();
$config = config('v2board');
foreach ($config as $k => $v) {
foreach (ConfigSave::RULES as $k => $v) {
if (!in_array($k, array_keys(ConfigSave::RULES))) {
unset($config[$k]);
continue;