From c26c208f34ce5b6b22567bf47551c066637048d4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 25 Oct 2010 16:31:57 -0400 Subject: Do not allow spaces in load balancer name fields, they are invalid in relayd. --- usr/local/www/load_balancer_relay_protocol_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/load_balancer_relay_protocol_edit.php') diff --git a/usr/local/www/load_balancer_relay_protocol_edit.php b/usr/local/www/load_balancer_relay_protocol_edit.php index ecd8ce4..1c0daa8 100755 --- a/usr/local/www/load_balancer_relay_protocol_edit.php +++ b/usr/local/www/load_balancer_relay_protocol_edit.php @@ -85,6 +85,9 @@ if ($_POST) { if (($_POST['name'] == $config['load_balancer']['lbprotocol'][$i]['name']) && ($i != $id)) $input_errors[] = gettext("This protocol name has already been used. Protocol names must be unique."); + if (strpos($_POST['name'], " ") !== false) + $input_errors[] = gettext("You cannot use spaces in the 'name' field."); + switch($_POST['type']) { case 'tcp': case 'http': -- cgit v1.1