aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/apcupsd/apcupsd.inc4
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'])) {