[otrs-cvs] Fred/Kernel/Output/HTML OutputFilterFred.pm,1.14,1.15

cvs-log at otrs.org cvs-log at otrs.org
Fri Mar 14 09:02:42 GMT 2008


Comments:
Update of /home/cvs/Fred/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv29883/Kernel/Output/HTML

Modified Files:
	OutputFilterFred.pm 
Log Message:
Insert a if-clause to check if there is any html-content.

Author: tr

Index: OutputFilterFred.pm
===================================================================
RCS file: /home/cvs/Fred/Kernel/Output/HTML/OutputFilterFred.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** OutputFilterFred.pm	30 Jan 2008 13:33:32 -0000	1.14
--- OutputFilterFred.pm	14 Mar 2008 09:02:37 -0000	1.15
***************
*** 72,75 ****
--- 72,80 ----
      }
  
+     # perhaps no output is generated
+     if (!$Param{Data}) {
+         die 'Fred: At the moment, your code generates no output!';
+     }
+ 
      # do nothing if output is a attachment
      if (${ $Param{Data} } =~ /^Content-Disposition: attachment;/mi


More information about the cvs-log mailing list