Index: /trunk/cgi-bin/IPDB.pm
===================================================================
--- /trunk/cgi-bin/IPDB.pm	(revision 925)
+++ /trunk/cgi-bin/IPDB.pm	(revision 926)
@@ -1575,4 +1575,8 @@
     $args{cidr} = new NetAddr::IP $args{cidr};
   }
+
+  # Spaces don't show up well in lots of places.  Make sure they don't get into the DB.
+  $args{custid} =~ s/^\s+//;
+  $args{custid} =~ s/\s+$//;
 
   $args{desc} = $args{description} if $args{description};
