summaryrefslogtreecommitdiffstats
path: root/app/models/import.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/import.rb')
-rw-r--r--app/models/import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index 127f7be88..22b90b6ac 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -51,7 +51,7 @@ class Import < ActiveRecord::Base
separator = lu(user, :general_csv_separator)
if file_exists?
begin
- content = File.read(filepath, 256, "rb")
+ content = File.read(filepath, 256)
separator = [',', ';'].sort_by {|sep| content.count(sep) }.last
rescue Exception => e
end