Parent Directory | Revision Log | Revision Graph
* Wed Mar 13 2009 Daniel B. <daniel@firewall-services.com> 1.02-0.10.rc3.el4.2 - Changes for SME Server (apache=>www)
1 | slords | 1.1 | --- trunk/server/Apache/Ocsinventory/Interface/Inventory.pm 2008/02/18 14:48:14 981 |
2 | +++ trunk/server/Apache/Ocsinventory/Interface/Inventory.pm 2009/01/08 12:07:03 1462 | ||
3 | @@ -24,7 +24,14 @@ | ||
4 | /; | ||
5 | |||
6 | sub get_computers { | ||
7 | - my $request = decode_xml( shift ); | ||
8 | + my ($data) = @_; | ||
9 | + | ||
10 | + die unless $data; | ||
11 | + | ||
12 | + # Remove non printable char from the XML | ||
13 | + $data =~ s/[[:cntrl:]]//g; | ||
14 | + | ||
15 | + my $request = decode_xml( $data ); | ||
16 | |||
17 | my %build_functions = ( | ||
18 | 'INVENTORY' => \&Apache::Ocsinventory::Interface::Inventory::build_xml_inventory, |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |