diff --git a/proftpd/proftpd-lib.pl b/proftpd/proftpd-lib.pl index 6780094b2..89fd84d0c 100755 --- a/proftpd/proftpd-lib.pl +++ b/proftpd/proftpd-lib.pl @@ -799,9 +799,10 @@ else { } } +# get_proftpd_version([&output]) sub get_proftpd_version { -local $out = `$config{'proftpd_path'} -v 2>&1`; +local $out = &backquote_command("$config{'proftpd_path'} -v 2>&1"); ${$_[0]} = $out if ($_[0]); if ($out =~ /ProFTPD\s+Version\s+(\d+)\.([0-9\.]+)/i || $out =~ /ProFTPD\s+(\d+)\.([0-9\.]+)/i) {