From eabceb73d27cc84ee0035b8016b83d099717c7a2 Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio (dbaio)" Date: Thu, 9 Apr 2015 09:10:41 -0300 Subject: apcupsd - use function is_port() --- config/apcupsd/apcupsd.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/apcupsd') 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'])) { -- cgit v1.2.3