diff options
-rwxr-xr-x | ftp_wizard/Proftpd.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm index ca8a466b..d50644ca 100755 --- a/ftp_wizard/Proftpd.pm +++ b/ftp_wizard/Proftpd.pm @@ -153,11 +153,7 @@ sub new { sub true { my ($val) = @_; - - $val eq "1" || $val eq "\'1\'" || $val eq "\"1\"" || - $val eq "true" || $val eq "\'true\'" || $val eq "\"true\"" and - return 1; - 0 + return member($val, qw(1 '1' "1" true 'true' "true")); } sub check_dir { |