]> git.donarmstrong.com Git - debbugs.git/commitdiff
* handle undefined keys in the typelookup deletion of soap.cgi
authorDon Armstrong <don@donarmstrong.com>
Thu, 25 Sep 2008 00:43:50 +0000 (17:43 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 25 Sep 2008 00:43:50 +0000 (17:43 -0700)
cgi/soap.cgi

index 1ca87b97b3c2be50bc5e7a903f44e5ea50e4c5f0..f6b0d0410c4daeeb5f29dbd4a6a7e3ae9e0615fc 100755 (executable)
@@ -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;