Browse Source

update: set config value trim

tokumeikoi 2 years ago
parent
commit
0a8fe5267f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/ConfigController.php

+ 1 - 1
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);