From 0a8fe5267f6f0696016ba605c4043ab1856ee2c5 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 15 Dec 2022 11:04:19 +0800 Subject: [PATCH] update: set config value trim --- app/Http/Controllers/Admin/ConfigController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 75273240..854e87ae 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/app/Http/Controllers/Admin/ConfigController.php @@ -177,7 +177,7 @@ class ConfigController extends Controller continue; } if (array_key_exists($k, $data)) { - $config[$k] = $data[$k]; + $config[$k] = trim($data[$k]); } } $data = var_export($config, 1);