diff --git lib/settings_controller_patch.rb lib/settings_controller_patch.rb index 363cf1b..08ec31f 100644 --- lib/settings_controller_patch.rb +++ lib/settings_controller_patch.rb @@ -78,6 +78,12 @@ module SettingsControllerPatch redirect_to :action => 'plugin', :id => @plugin.id return end + + # Workaround for IssueID: #1080 + desc = params[:settings][:banner_description] + if desc.respond_to?(:force_encoding) + params[:settings][:banner_description] = desc.force_encoding('UTF-8') + end rescue => ex # Argument Error # TODO: Exception will happen about 2038 problem. (Fixed on Ruby1.9) @@ -87,6 +93,7 @@ module SettingsControllerPatch end end # Continue to do default action + plugin_without_banner_date_validation end end