Skip to content

Commit

Permalink
mailsrv: fix smarthost parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hoffmann committed Nov 18, 2015
1 parent 51d32bf commit 79b3c11
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -165,7 +165,7 @@ sub get_smarthost (){
$sh =~ s/^\[(.*?)\]\Z/$1/;

my $bkf = Yaffas::File->new(Yaffas::Constant::FILE->{'postfix_smtp_auth'});
my $ln = $bkf->search_line($sh);
my $ln = $bkf->search_line(quotemeta($sh));
my $line = $bkf->get_content($ln);

my ($username, $password);
Expand Down Expand Up @@ -246,7 +246,7 @@ sub rm_smarthost($) {


my $bkf = Yaffas::File->new(Yaffas::Constant::FILE->{'exim_passwd_client'});
my $ln = $bkf->search_line($sh);
my $ln = $bkf->search_line(quotemeta($sh));
$bkf->splice_line($ln, 1 );
$bkf->write();
}
Expand Down

0 comments on commit 79b3c11

Please sign in to comment.