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:
31280bf
)
Dateinamen im webdav aus utf8 decoden. Nicht NFC normalisieren, die müssen hinterher...
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 2 Aug 2013 14:35:14 +0000
(16:35 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 2 Aug 2013 14:35:14 +0000
(16:35 +0200)
SL/Common.pm
patch
|
blob
|
history
diff --git
a/SL/Common.pm
b/SL/Common.pm
index
733eb74
..
d626025
100644
(file)
--- a/
SL/Common.pm
+++ b/
SL/Common.pm
@@
-21,6
+21,7
@@
use File::Slurp;
use File::Spec;
use List::MoreUtils qw(apply);
use POSIX ();
+use Encode qw(decode);
use SL::DBUtils;
@@
-355,7
+356,7
@@
sub webdav_folder {
my $base_path = $ENV{'SCRIPT_NAME'};
$base_path =~ s|[^/]+$||;
if (opendir my $dir, $path) {
- foreach my $file (sort { lc $a cmp lc $b } readdir $dir) {
+ foreach my $file (sort { lc $a cmp lc $b }
map { decode("UTF-8", $_) }
readdir $dir) {
next if (($file eq '.') || ($file eq '..'));
my $fname = $file;