From: Jean-Philippe Lang Date: Sun, 15 Mar 2015 20:27:12 +0000 (+0000) Subject: Reverts r14115 in trunk. X-Git-Tag: 3.1.0~190 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12263ae626ad3550d38de8632f8342590e39b4bd;p=redmine.git Reverts r14115 in trunk. git-svn-id: http://svn.redmine.org/redmine/trunk@14117 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/setting.rb b/app/models/setting.rb index 0a40b183e..2574649f3 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -243,7 +243,7 @@ END_SRC private def force_utf8_strings(arg) - if arg.is_a?(String) && arg.respond_to?(:force_encoding) + if arg.is_a?(String) arg.dup.force_encoding('UTF-8') elsif arg.is_a?(Array) arg.map do |a|