Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Remove Auto-Generated TinyMCE Skins and Add `public/tinymce/skins/` to `.gitignore` [#3466](https://github.com/DMPRoadmap/roadmap/pull/3466)
- Re-implement email confirmation [#3507](https://github.com/DMPRoadmap/roadmap/pull/3507)
- Update `spec/support/faker.rb` to use `I18n.default_locale` [#3507](https://github.com/DMPRoadmap/roadmap/pull/3507)
- Properly validate CSV Separator [#3557](https://github.com/DMPRoadmap/roadmap/pull/3557)

## v5.0.0

Expand Down
9 changes: 7 additions & 2 deletions app/controllers/usage_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,14 @@ def parse_filtered
params[:filtered].present? && params[:filtered] == 'true'
end

# set the csv separator or default to comma
# This sets the csv separator
# Ensures separator is either a comma or a safe separator
def sep_param
params['sep'] || ','
safe_csv_separators = Rails.configuration.x.application.csv_separators
sep = params['sep'].to_s
return sep if safe_csv_separators.include?(sep)

','
end

def min_max_dates(args:)
Expand Down