Skip to content

Commit

Permalink
[backend] verify service name
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 12, 2015
1 parent 38bd05d commit b0ebb1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bs_service
Expand Up @@ -143,6 +143,7 @@ sub run_source_update {
my $infoxml = readstr($sf);
my $serviceinfo = XMLin($BSXML::services, $infoxml);
for my $service (@{$serviceinfo->{'service'}}) {
BSVerify::verify_filename($service->{'name'});
if (defined($service->{'mode'}) && ($service->{'mode'} eq 'localonly' || $service->{'mode'} eq 'disabled')) {
print "Skip ".$service->{'name'}."\n";
next;
Expand Down

0 comments on commit b0ebb1c

Please sign in to comment.