diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 54879ab152..f79c91dc1d 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2013-02-25 Sancho Lerena + + * PandoraFMS/Config.pm: Fixed parsing of mta_from, avoiding problems + on blank spaces. + 2013-02-25 Ramon Novoa * bin/pandora_server: Delay the backgrounding of the main process to diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 6a5efd7569..a30cdd66c5 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -397,7 +397,7 @@ sub pandora_load_config { $pa_config->{'mta_auth'}= clean_blank($1); } elsif ($parametro =~ m/^mta_from\s(.*)/i) { - $pa_config->{'mta_from'}= $1; + $pa_config->{'mta_from'}= clean_blank($1); } elsif ($parametro =~ m/^snmp_logfile\s(.*)/i) { $pa_config->{'snmp_logfile'}= clean_blank($1);