diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index f071cd62..5c541569 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/app/Http/Controllers/Admin/ConfigController.php @@ -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;