From 89a03c94dcb6bd8131e86bd5fa51848137850299 Mon Sep 17 00:00:00 2001 From: Rob van Son Date: Thu, 16 May 2013 14:35:07 +0200 Subject: [PATCH] Handled empty ticket files --- CGIscriptor.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CGIscriptor.pl b/CGIscriptor.pl index 5e6efdf..3c1053a 100755 --- a/CGIscriptor.pl +++ b/CGIscriptor.pl @@ -4124,6 +4124,10 @@ sub read_ticket # ($ticketfile [, $salt, $masterkey]) -> &%ticket push(@{$ticket->{$Label}}, $Value); }; }; + } + elsif(-z $ticketfile) + { + return 0; }; if($masterkey && exists($ticket->{'Password'}) && $ticket->{'Password'}->[0]) { -- 2.11.4.GIT