Skip to content

Commit

Permalink
Issue #1425: tidying
Browse files Browse the repository at this point in the history
adding namespace::autoclean and explicitly import the used functions
  • Loading branch information
bschmalhofer committed Nov 19, 2021
1 parent a6f5908 commit dea725b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Kernel/Output/HTML/Layout.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ package Kernel::Output::HTML::Layout;
use strict;
use warnings;
use v5.24;
use namespace::autoclean;
use utf8;

# core modules
use Digest::MD5 qw(md5_hex);
use Scalar::Util qw(blessed);

# CPAN modules
use URI::Escape qw();
use URI::Escape qw(uri_escape_utf8);
use Plack::Response;

# OTOBO modules
Expand Down Expand Up @@ -2211,7 +2213,7 @@ sub LinkEncode {

return if !defined $Link;

return URI::Escape::uri_escape_utf8($Link);
return uri_escape_utf8($Link);
}

sub CustomerAgeInHours {
Expand Down Expand Up @@ -2712,7 +2714,7 @@ sub Attachment {
if ( $Param{Filename} ) {

# IE 10+ supports this
my $URLEncodedFilename = URI::Escape::uri_escape_utf8( $Param{Filename} );
my $URLEncodedFilename = uri_escape_utf8( $Param{Filename} );
$ContentDisposition .= " filename=\"$Param{Filename}\"; filename*=utf-8''$URLEncodedFilename";
}
$Headers{'Content-Disposition'} = $ContentDisposition;
Expand Down

0 comments on commit dea725b

Please sign in to comment.