aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig/haproxy/haproxy_backends_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy/haproxy_backends_edit.php b/config/haproxy/haproxy_backends_edit.php
index fe92c5ed..f277956c 100755
--- a/config/haproxy/haproxy_backends_edit.php
+++ b/config/haproxy/haproxy_backends_edit.php
@@ -120,7 +120,7 @@ if ($_POST) {
if (!is_numeric($_POST['max_connections']))
$input_errors[] = "The field 'Max connections' value is not a number.";
- $ports = $_POST['port'];
+ $ports = split(",", $_POST['port'] . ",");
foreach($ports as $port)
if ($port && !is_numeric($port))
$input_errors[] = "The field 'Port' value is not a number.";