Do not attempt to UTF-8 decode OUI retrieved by curl/wget

This commit is contained in:
Oliver Gorwits
2017-04-29 09:02:33 +01:00
parent c182beeebf
commit dc36f1b036
2 changed files with 6 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ sub deploy_oui {
sub shorten {
my $manuf = shift;
$manuf = decode "utf8", $manuf, Encode::FB_CROAK;
$manuf = decode("utf8", $manuf, Encode::FB_CROAK) unless @ARGV;
$manuf = " " . $manuf . " ";
# Remove any punctuation