--- trunk/server/Apache/Ocsinventory/Interface/Inventory.pm 2008/02/18 14:48:14 981 +++ trunk/server/Apache/Ocsinventory/Interface/Inventory.pm 2009/01/08 12:07:03 1462 @@ -24,7 +24,14 @@ /; sub get_computers { - my $request = decode_xml( shift ); + my ($data) = @_; + + die unless $data; + + # Remove non printable char from the XML + $data =~ s/[[:cntrl:]]//g; + + my $request = decode_xml( $data ); my %build_functions = ( 'INVENTORY' => \&Apache::Ocsinventory::Interface::Inventory::build_xml_inventory,