#388 searching for 0.x.x.x returns Internal Server Error (C. Neuhaus)

This commit is contained in:
Oliver Gorwits
2018-04-10 21:22:06 +01:00
parent 6ee946cca6
commit 11e49671fd
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ ajax '/ajax/content/search/node' => require_login sub {
my ( $start, $end ) = param('daterange') =~ m/(\d+-\d+-\d+)/gmx;
my $mac = NetAddr::MAC->new(mac => $node);
undef $mac if ($mac and $mac->as_ieee and ($mac->as_ieee eq '00:00:00:00'));
my @active = (param('archived') ? () : (-bool => 'active'));
my (@times, @wifitimes, @porttimes);