Fix wrong variable name in Import#set_default_settings (#34718).

git-svn-id: http://svn.redmine.org/redmine/trunk@21354 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-01-07 10:06:28 +00:00
parent e00f28e82e
commit 4fbbcf3cdf
2 changed files with 4 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ class Import < ActiveRecord::Base
separator = [',', ';'].max_by {|sep| content.count(sep)}
guessed_encoding = Redmine::CodesetUtil.guess_encoding(file_content)
guessed_encoding = Redmine::CodesetUtil.guess_encoding(content)
encoding =
(guessed_encoding && (
Setting::ENCODINGS.detect {|e| e.casecmp?(guessed_encoding)} ||