projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
HTMLFixes.pm
diff --git
a/SL/Template/Plugin/HTMLFixes.pm
b/SL/Template/Plugin/HTMLFixes.pm
index
5c62078
..
fad6993
100644
(file)
--- a/
SL/Template/Plugin/HTMLFixes.pm
+++ b/
SL/Template/Plugin/HTMLFixes.pm
@@
-21,7
+21,7
@@
no warnings 'redefine';
sub url {
my ($self, $text) = @_;
return undef unless defined $text;
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;
}
$text =~ s/([^a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg;
return $text;
}