diff --git a/app/controllers/admin/site_settings_controller.rb b/app/controllers/admin/site_settings_controller.rb index b9b9e7273e4..ae6be824a4e 100644 --- a/app/controllers/admin/site_settings_controller.rb +++ b/app/controllers/admin/site_settings_controller.rb @@ -10,6 +10,7 @@ class Admin::SiteSettingsController < Admin::AdminController params.require(:id) id = params[:id] value = params[id] + value.strip! if value.is_a?(String) StaffActionLogger.new(current_user).log_site_setting_change(id, SiteSetting.send(id), value) if SiteSetting.has_setting?(id) SiteSetting.set(id, value) render nothing: true