From 72c968ff2389646b0ff3648bef03d9279c2e970b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 20 Nov 2009 17:19:19 -0500 Subject: Split ports by , --- config/haproxy/haproxy_backends_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/haproxy') 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."; -- cgit v1.2.3