diff options
author | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2015-04-09 09:10:41 -0300 |
---|---|---|
committer | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2015-04-09 09:10:41 -0300 |
commit | eabceb73d27cc84ee0035b8016b83d099717c7a2 (patch) | |
tree | 1d1d49c1266e285008f55bbef975417171a6643c /config/apcupsd | |
parent | b790378ebab8de30fc739d3cf2752ea6a463a108 (diff) | |
download | pfsense-packages-eabceb73d27cc84ee0035b8016b83d099717c7a2.tar.gz pfsense-packages-eabceb73d27cc84ee0035b8016b83d099717c7a2.tar.bz2 pfsense-packages-eabceb73d27cc84ee0035b8016b83d099717c7a2.zip |
apcupsd - use function is_port()
Diffstat (limited to 'config/apcupsd')
-rw-r--r-- | config/apcupsd/apcupsd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/apcupsd/apcupsd.inc b/config/apcupsd/apcupsd.inc index c46f9cc4..86e026a6 100644 --- a/config/apcupsd/apcupsd.inc +++ b/config/apcupsd/apcupsd.inc @@ -123,8 +123,8 @@ function validate_input_apcupsd($post,&$input_errors){ if (empty($post['smtpport'])) { $input_errors[]='SMTP Port cannot be empty if SMTP builtin is enabled.'; - }elseif(!is_numericint($post['smtpport'])){ - $input_errors[]='SMTP Port is not numeric.'; + }elseif(!is_port($post['smtpport'])){ + $input_errors[]='SMTP Port is not a valid port.'; } if (empty($post['smtpfrom'])) { |