2011-08-10 Vanessa Gil <vanessa.gil@artica.es>
* unix/pandora_agent.php: Fixed error reading collections of the configuration file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4707 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
bd2c31a018
commit
a190305e12
|
@ -1,3 +1,7 @@
|
||||||
|
2011-08-10 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* unix/pandora_agent.php: Fixed error reading collections of the configuration file.
|
||||||
|
|
||||||
2011-08-09 Miguel de Dios <miguel.dedios@artica.es>
|
2011-08-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* DEBIAN/control: fixed the name of package and update version number.
|
* DEBIAN/control: fixed the name of package and update version number.
|
||||||
|
|
|
@ -420,6 +420,11 @@ sub parse_conf_modules($) {
|
||||||
# Collection
|
# Collection
|
||||||
} elsif ($line =~ /^\s*file_collection\s+(.+)$/) {
|
} elsif ($line =~ /^\s*file_collection\s+(.+)$/) {
|
||||||
my $collection = $1;
|
my $collection = $1;
|
||||||
|
|
||||||
|
# Prevent path traversal attacks
|
||||||
|
if ($collection !~ m/(\.\.)|\//) {
|
||||||
|
$Collections{$collection} = 0;
|
||||||
|
}
|
||||||
# Min critical
|
# Min critical
|
||||||
} elsif ($line =~ /^\s*module_min_critical\s+(.*)\s*$/) {
|
} elsif ($line =~ /^\s*module_min_critical\s+(.*)\s*$/) {
|
||||||
$module->{'min_critical'} = $1;
|
$module->{'min_critical'} = $1;
|
||||||
|
|
Loading…
Reference in New Issue