Do not attempt to UTF-8 decode OUI retrieved by curl/wget
This commit is contained in:
6
Changes
6
Changes
@@ -1,9 +1,13 @@
|
|||||||
2.035005 -
|
2.035005 - 2017-04-29
|
||||||
|
|
||||||
[NEW FEATURES]
|
[NEW FEATURES]
|
||||||
|
|
||||||
* New report for Port VLAN Mismatches (M. Bernstein)
|
* New report for Port VLAN Mismatches (M. Bernstein)
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* Do not attempt to UTF-8 decode OUI retrieved by curl/wget
|
||||||
|
|
||||||
2.035004 - 2017-04-25
|
2.035004 - 2017-04-25
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ sub deploy_oui {
|
|||||||
sub shorten {
|
sub shorten {
|
||||||
my $manuf = shift;
|
my $manuf = shift;
|
||||||
|
|
||||||
$manuf = decode "utf8", $manuf, Encode::FB_CROAK;
|
$manuf = decode("utf8", $manuf, Encode::FB_CROAK) unless @ARGV;
|
||||||
$manuf = " " . $manuf . " ";
|
$manuf = " " . $manuf . " ";
|
||||||
|
|
||||||
# Remove any punctuation
|
# Remove any punctuation
|
||||||
|
|||||||
Reference in New Issue
Block a user