mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-18 21:32:55 +00:00
CSV import delimiter detection broken (#22583).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15357 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7e366ace03
commit
6376762917
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user