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');