From: Don Armstrong Date: Thu, 25 Sep 2008 00:43:50 +0000 (-0700) Subject: * handle undefined keys in the typelookup deletion of soap.cgi X-Git-Tag: release/2.6.0~468^2~3 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=dd69df36bd1f6d4e3ef367b66f9005a3515a5872 * handle undefined keys in the typelookup deletion of soap.cgi --- diff --git a/cgi/soap.cgi b/cgi/soap.cgi index 1ca87b9..f6b0d04 100755 --- a/cgi/soap.cgi +++ b/cgi/soap.cgi @@ -21,7 +21,7 @@ my $soap = Debbugs::SOAP::Server # kill off all of the date/time related bits in the serializer. my $typelookup = $soap->serializer()->{_typelookup}; for my $key (keys %{$typelookup}) { - next unless /Month|Day|Year|date|time|duration/i; + next unless defined $_ and /Month|Day|Year|date|time|duration/i; delete $typelookup->{$key}; } $soap->handle;