[otrs-cvs] CVS: otrs/Kernel/Output/HTML Generic.pm,1.191,1.192

cvs-log at otrs.org cvs-log at otrs.org
Fri Aug 19 18:33:43 CEST 2005


Update of /home/cvs/otrs/Kernel/Output/HTML
In directory osser:/tmp/cvs-serv21236/Kernel/Output/HTML

Modified Files:
	Generic.pm 
Log Message:
fixed bug 871 - Erroneous Content-Length fields are sent when downloading attachments

Index: Generic.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Generic.pm,v
retrieving revision 1.191
retrieving revision 1.192
diff -C2 -r1.191 -r1.192
*** Generic.pm	23 Jul 2005 11:08:45 -0000	1.191
--- Generic.pm	19 Aug 2005 15:33:41 -0000	1.192
***************
*** 1246,1249 ****
--- 1246,1250 ----
      $Text =~ s/>/>/g;
      $Text =~ s/"/"/g;
+ #    $Text =~ s/'/'/g;
      # text -> html format quoting
      if ($HTMLMode) {
***************
*** 1700,1704 ****
      }
      $Output .= "filename=\"$Param{Filename}\"\n";
!     $Output .= "Content-Length: ".length($Param{Content})."\n";
      $Output .= "Content-Type: $Param{ContentType}\n\n";
      # fix for firefox HEAD problem
--- 1701,1711 ----
      }
      $Output .= "filename=\"$Param{Filename}\"\n";
!     # get attachment size
!     {
!         use bytes;
!         $Param{Size} = length($Param{Content});
!         no bytes;
!     }
!     $Output .= "Content-Length: $Param{Size}\n";
      $Output .= "Content-Type: $Param{ContentType}\n\n";
      # fix for firefox HEAD problem



More information about the cvs-log mailing list