Commit 8fab57a 1 parent fd68f16 commit 8fab57a Copy full SHA for 8fab57a
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ netdiscovery/netinventory:
52
52
meaning RemoteInventory was functionnal only if at least ping works or the
53
53
targeted computer was in the same network (arp works).
54
54
* Add support for Socomec PDU
55
+ * fix #653: Some values like LOCATION or CONTACT can be wrongly encoded
55
56
56
57
deploy:
57
58
* Force agent to run a partial software inventory after the deploy task is done
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ use strict;
4
4
use warnings;
5
5
use base ' Exporter' ;
6
6
7
+ use Encode qw( decode) ;
8
+
7
9
use GLPI::Agent::Tools;
8
10
9
11
our @EXPORT = qw(
@@ -56,7 +58,8 @@ sub getCanonicalString {
56
58
# Finally cleanup EOL if some is remaining at the end
57
59
chomp ($value );
58
60
59
- return $value ;
61
+ # Finally return decoded string
62
+ return decode(' UTF-8' , $value );
60
63
}
61
64
62
65
sub getCanonicalMacAddress {
You can’t perform that action at this time.
0 commit comments