Skip to content

Commit

Permalink
fix: also cleanup final EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Oct 1, 2018
1 parent 0146472 commit 11568dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/FusionInventory/Agent/Tools/SNMP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ sub getCanonicalString {
# truncate after first invalid character but keep newline as valid
$value =~ s/[^\p{Print}\n].*$//;

# Finally cleanup EOL if some is remaining at the end
chomp($value);

return $value;
}

Expand Down

0 comments on commit 11568dc

Please sign in to comment.