projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a60af85
)
Beim URL-Escapen vom internen Encoding nach UTF-8 wandeln, sofern benötigt
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 13 Dec 2010 16:08:35 +0000
(17:08 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 13 Dec 2010 16:08:35 +0000
(17:08 +0100)
SL/Form.pm
patch
|
blob
|
history
diff --git
a/SL/Form.pm
b/SL/Form.pm
index
f3fe6e5
..
f02c25a
100644
(file)
--- a/
SL/Form.pm
+++ b/
SL/Form.pm
@@
-42,6
+42,7
@@
use Data::Dumper;
use CGI;
use CGI::Ajax;
use Cwd;
+use Encode;
use IO::File;
use SL::Auth;
use SL::Auth::DB;
@@
-379,6
+380,7
@@
sub escape {
my ($self, $str) = @_;
+ $str = Encode::encode('utf-8-strict', $str) if $::locale->is_utf8;
$str =~ s/([^a-zA-Z0-9_.-])/sprintf("%%%02x", ord($1))/ge;
$main::lxdebug->leave_sub(2);