Skip to content
Merged
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 @@ -3,6 +3,7 @@
## v5.0.2
- Bump Ruby to v3.1.4 and use `.ruby-version` in CI [#3566](https://github.com/DMPRoadmap/roadmap/pull/3566)
- Enable session timeout after 90 minutes of inactivity [#3568](https://github.com/DMPRoadmap/roadmap/pull/3568)
- Validate CSV Separator [#3569](https://github.com/DMPRoadmap/roadmap/pull/3569)

## v5.0.1
- Updated seeds.rb file for identifier_schemes to include context value and removed logo_url and idenitifier_prefix for Shibboleth (as it was causing issues with SSO). [#3525](https://github.com/DMPRoadmap/roadmap/pull/3525)
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