Skip to content

Commit

Permalink
pfSense-pkg-zabbix-proxy: Change messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaio committed Apr 26, 2017
1 parent e948623 commit ae47b1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function validate_input_zabbix_proxy_lts($post, &$input_errors) {
if (!is_numericint($post['serverport'])) {
$input_errors[] = "'Server Port' value is not numeric.";
} elseif ($post['serverport'] < 1 || $post['serverport'] > 65535) {
$input_errors[] = "You must enter a valid value for 'Server Port'.";
$input_errors[] = "Enter a valid value for 'Server Port'.";
}

if (!preg_match("/\w+/", $post['hostname'])) {
Expand All @@ -68,13 +68,13 @@ function validate_input_zabbix_proxy_lts($post, &$input_errors) {
if (!is_numericint($post['trappertimeout'])) {
$input_errors[] = "'Trapper Timeout' value is not numeric.";
} elseif ($post['trappertimeout'] < 1 || $post['trappertimeout'] > 300) {
$input_errors[] = "You must enter a valid value for 'Trapper Timeout'.";
$input_errors[] = "Enter a valid value for 'Trapper Timeout'.";
}

if (!is_numericint($post['starttrappers'])) {
$input_errors[] = "'Start Trappers' value is not numeric.";
} elseif ($post['starttrappers'] > 1000) {
$input_errors[] = "You must enter a valid value for 'Start Trappers'.";
$input_errors[] = "Enter a valid value for 'Start Trappers'.";
}
}
}
Expand Down

0 comments on commit ae47b1f

Please sign in to comment.