From cdcd75d1ffde3f83362bf752b1d2cf0d3b480946 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Jun 2010 03:00:11 +0100 Subject: [PATCH] do check end --- cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/cgi b/cgi index cc6c5b2..2df45cc 100755 --- a/cgi +++ b/cgi @@ -264,6 +264,7 @@ if (defined $elem) { $sloth =~ m/^(\d+)$/ or die; $sloth= $1+0; my $end= $g->{TimeRanges}[$sloth]; + die unless defined $end; my $cacheid= "$section!$group!$elem!$sloth!$width!$height"; my $cachepath= "cache/$cacheid.png"; -- 2.30.2