Skip to content

Commit

Permalink
uri_escape file_name with utf8 mark
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Oct 16, 2018
1 parent 64cc016 commit fca94d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LibreCat/App/Catalogue/Route/file.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use LibreCat::App::Helper;
use LibreCat::App::Catalogue::Controller::Permission;
use DateTime;
use Catmandu::Util qw(:is);
use URI::Escape qw(uri_escape);
use URI::Escape qw(uri_escape uri_escape_utf8);

#str_format( "%f.%e", f => "DS.0", e => "txt" )
sub str_format {
Expand Down Expand Up @@ -93,7 +93,7 @@ sub _send_it {
'Cache-Control' =>
'no-store, no-cache, must-revalidate, max-age=0',
'Pragma' => 'no-cache',
'Content-Disposition' => qq(inline; filename="$name")
'Content-Disposition' => "inline; filename*=UTF-8''".uri_escape_utf8($name)
);

# Send the HTTP headers
Expand Down

0 comments on commit fca94d7

Please sign in to comment.