[otrs-cvs]
CVS: otrs/Kernel/System/Ticket ArticleStorageDB.pm, 1.36, 1.37
ArticleStorageFS.pm,1.33,1.34
cvs-log at otrs.org
cvs-log at otrs.org
Mon Dec 11 07:47:24 CET 2006
Update of /home/cvs/otrs/Kernel/System/Ticket
In directory lancelot:/tmp/cvs-serv15862/Kernel/System/Ticket
Modified Files:
ArticleStorageDB.pm ArticleStorageFS.pm
Log Message:
fixed bug #962 - Broken attachments with cyrillic filenames
Index: ArticleStorageDB.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/ArticleStorageDB.pm,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** ArticleStorageDB.pm 21 Sep 2006 11:20:42 -0000 1.36
--- ArticleStorageDB.pm 11 Dec 2006 06:47:22 -0000 1.37
***************
*** 20,24 ****
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
-
sub ArticleStorageInit {
my $Self = shift;
--- 20,23 ----
***************
*** 388,391 ****
--- 387,395 ----
foreach my $Filename (@List) {
my $FileSize = -s $Filename;
+ # convert the file name in utf-8 if utf-8 is used
+ $Filename = $Self->{EncodeObject}->Decode(
+ Text => $Filename,
+ From => 'utf-8',
+ );
# human readable file size
if ($FileSize) {
***************
*** 493,496 ****
}
-
1;
--- 497,499 ----
Index: ArticleStorageFS.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/ArticleStorageFS.pm,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** ArticleStorageFS.pm 22 Nov 2006 06:32:21 -0000 1.33
--- ArticleStorageFS.pm 11 Dec 2006 06:47:22 -0000 1.34
***************
*** 377,380 ****
--- 377,385 ----
foreach my $Filename (@List) {
my $FileSize = -s $Filename;
+ # convert the file name in utf-8 if utf-8 is used
+ $Filename = $Self->{EncodeObject}->Decode(
+ Text => $Filename,
+ From => 'utf-8',
+ );
# human readable file size
if ($FileSize) {
More information about the cvs-log
mailing list