瀏覽代碼

后台配置

linwu 2 年之前
父節點
當前提交
f140caf2c1
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      vendor/thinkcmf/cmf-app/src/admin/controller/SettingController.php

+ 0 - 3
vendor/thinkcmf/cmf-app/src/admin/controller/SettingController.php

@@ -111,9 +111,6 @@ class SettingController extends AdminBaseController
             cmf_set_option('site_info', $options);
 
             $cmfSettings = $this->request->param('cmf_settings/a');
-
-            $bannedUsernames                 = preg_replace("/[^0-9A-Za-z_\\x{4e00}-\\x{9fa5}-]/u", ",", $cmfSettings['banned_usernames']);
-            $cmfSettings['banned_usernames'] = $bannedUsernames;
             cmf_set_option('cmf_settings', $cmfSettings);
 
             $cdnSettings = $this->request->param('cdn_settings/a');