Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv11782/Kernel/System
Modified Files:
Tag: rel-2_1
PDF.pm
Log Message:
Add loop protection to Table().
Author: mh
Index: PDF.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/PDF.pm,v
retrieving revision 1.21
retrieving revision 1.21.2.1
diff -C2 -d -r1.21 -r1.21.2.1
*** PDF.pm 13 Nov 2006 18:15:55 -0000 1.21
--- PDF.pm 4 Apr 2007 07:47:13 -0000 1.21.2.1
***************
*** 1,5 ****
# --
# Kernel/System/PDF.pm - PDF lib
! # Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id$
--- 1,5 ----
# --
# Kernel/System/PDF.pm - PDF lib
! # Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
# --
# $Id$
***************
*** 694,697 ****
--- 694,698 ----
if (!defined ($Param{$_})) {
$Self->{LogObject}->Log(Priority => 'error', Message => "Need $_!");
+ $Param{State} = 1;
return;
}
***************
*** 699,706 ****
--- 700,709 ----
if (!$Self->{PDF}) {
$Self->{LogObject}->Log(Priority => 'error', Message => "Need a PDF Document!");
+ $Param{State} = 1;
return;
}
if (!$Self->{Page}) {
$Self->{LogObject}->Log(Priority => 'error', Message => "Need a Page!");
+ $Param{State} = 1;
return;
}