[otrs-cvs] CVS: otrs/Kernel/System Stats.pm,1.6,1.7

cvs-log at otrs.org cvs-log at otrs.org
Wed Nov 8 09:20:22 CET 2006


Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv31698/Kernel/System

Modified Files:
	Stats.pm 
Log Message:
first suggestion for the solution of the filenameproblem

Index: Stats.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Stats.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Stats.pm	26 Oct 2006 06:29:58 -0000	1.6
--- Stats.pm	8 Nov 2006 08:20:19 -0000	1.7
***************
*** 2170,2174 ****
      $h = sprintf("%02d", $h);
      $m = sprintf("%02d", $m);
!     $Param{String} =~ s/ /-/g;
  
      my $Filename = $Param{String} . "_"."$Y-$M-$D"."_"."$h-$m";
--- 2170,2175 ----
      $h = sprintf("%02d", $h);
      $m = sprintf("%02d", $m);
!     # replace invalid token like < > ? " : | \ or *
!     $Param{String} =~ s/[ <>\?":\\\*\|]/-/g;
  
      my $Filename = $Param{String} . "_"."$Y-$M-$D"."_"."$h-$m";



More information about the cvs-log mailing list