Skip to content

Commit

Permalink
Fixed ldp deprecation warning, and UTF-8 filename bug (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlooney authored Sep 6, 2022
1 parent 47c32e0 commit 47d5ea5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/lib/ldp/response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true
require 'ldp/response'

Ldp::Response.class_eval do
def content_disposition_filename
filename = content_disposition_attributes['filename']
CGI.unescape(filename) if filename
end
end
1 change: 1 addition & 0 deletions config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
# config.identifier_registrars = {}
end
require './app/lib/hydra/file_characterization/characterizers/fits_servlet'
require './app/lib/ldp/response'
Date::DATE_FORMATS[:standard] = "%m/%d/%Y"

Hyrax::Engine.routes.default_url_options = Rails.application.routes.default_url_options
Expand Down

0 comments on commit 47d5ea5

Please sign in to comment.