aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy_servers_edit.php
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-15 09:12:56 -0500
committersullrich <sullrich@pfsense.org>2009-12-15 09:12:56 -0500
commitdcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a (patch)
treeb94fdf8b5c0d5e0c2803c73b9ac5215f3f94fefa /config/haproxy/haproxy_servers_edit.php
parent64d7fb839093018867e7f2fae3690a0946686dcf (diff)
downloadpfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.tar.gz
pfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.tar.bz2
pfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.zip
pick up frontend ports correctly
Diffstat (limited to 'config/haproxy/haproxy_servers_edit.php')
-rwxr-xr-xconfig/haproxy/haproxy_servers_edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/haproxy/haproxy_servers_edit.php b/config/haproxy/haproxy_servers_edit.php
index 9ea8e64b..8af4fc90 100755
--- a/config/haproxy/haproxy_servers_edit.php
+++ b/config/haproxy/haproxy_servers_edit.php
@@ -78,11 +78,12 @@ if ($_POST) {
if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['cookie']))
$input_errors[] = "The field 'Cookie' contains invalid characters.";
- if (!is_numeric($_POST['port']))
+ if ($_POST['port'] && !is_numeric($_POST['port']))
$input_errors[] = "The field 'Port' value is not a number.";
else {
- if (!($_POST['port']>=1 && $_POST['port']<=65535))
- $input_errors[] = "The field 'Port' value must be between 1 and 65535.";
+ if ($_POST['port'])
+ if (!($_POST['port']>=1 && $_POST['port']<=65535))
+ $input_errors[] = "The field 'Port' value must be between 1 and 65535.";
}
if (!is_numeric($_POST['weight']))