Defect #1080 » issue_1080_encoding.patch
lib/settings_controller_patch.rb | ||
---|---|---|
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)
|
||
... | ... | |
end
|
||
end
|
||
# Continue to do default action
|
||
|
||
plugin_without_banner_date_validation
|
||
end
|
||
end
|