X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/20a76c43821e96a4ee9b6d43e976241974fefb11..2a8df53fac09e95c9199021399e2343ff766535d:/SL/Template/Plugin/HTMLFixes.pm diff --git a/SL/Template/Plugin/HTMLFixes.pm b/SL/Template/Plugin/HTMLFixes.pm index 32d3c5683..fad69932a 100644 --- a/SL/Template/Plugin/HTMLFixes.pm +++ b/SL/Template/Plugin/HTMLFixes.pm @@ -12,7 +12,7 @@ use Encode; # Replacement for Template::Plugin::HTML::url. -# Strings in Lx-Office are stored in Perl's internal encoding but have +# Strings in kivitendo are stored in Perl's internal encoding but have # to be output as UTF-8. A normal regex replace doesn't do that # creating invalid UTF-8 characters upon URL-unescaping. @@ -21,7 +21,7 @@ no warnings 'redefine'; sub url { my ($self, $text) = @_; return undef unless defined $text; - $text = Encode::encode('utf-8-strict', $text) if $::locale && $::locale->is_utf8; + $text = Encode::encode('utf-8-strict', $text); $text =~ s/([^a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg; return $text; }