2014-06-26 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Remove new line and carriage return characters when parsing the configuration file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10290 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f2d05bc443
commit
a3ac3bb0d8
|
@ -1,3 +1,8 @@
|
|||
2014-06-26 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/pandora_xml_stress.pl: Remove new line and carriage return
|
||||
characters when parsing the configuration file.
|
||||
|
||||
2014-06-24 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/recon_scripts/snmp-recon.pl: Improved host connection.
|
||||
|
|
|
@ -47,7 +47,8 @@ sub load_config ($\%\@) {
|
|||
open (FILE, "<", $conf_file) || die ("[error] Could not open configuration file '$conf_file': $!.\n\n");
|
||||
|
||||
while (my $line = <FILE>) {
|
||||
|
||||
$line =~ s/[\r\n]+//g;
|
||||
|
||||
# A module definition
|
||||
if ($line =~ m/module_begin/) {
|
||||
my %module;
|
||||
|
@ -56,6 +57,7 @@ sub load_config ($\%\@) {
|
|||
next if ($line =~ m/^#/);
|
||||
|
||||
while (my $line = <FILE>) {
|
||||
$line =~ s/[\r\n]+//g;
|
||||
|
||||
# A comment
|
||||
next if ($line =~ m/^#/);
|
||||
|
|
Loading…
Reference in New Issue