#721 search will trim whitespace and handle more MAC formats

This commit is contained in:
Oliver Gorwits
2020-05-24 19:41:21 +01:00
parent ba32ba3f5d
commit 3662899ede
3 changed files with 10 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ get '/search' => require_login sub {
}
# pick most likely tab for initial results
if ($q =~ m/^\d+$/) {
if ($q =~ m/^[0-9]+$/ and $q < 4096) {
params->{'tab'} = 'vlan';
}
else {