summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_virtual_server_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-10-25 16:31:57 -0400
committerjim-p <jimp@pfsense.org>2010-10-25 16:31:57 -0400
commitc26c208f34ce5b6b22567bf47551c066637048d4 (patch)
treed2bc025a80a5c3d5a5d04d49f718b0c226348163 /usr/local/www/load_balancer_virtual_server_edit.php
parent5bb6e1f54022c796e8c37510b287337c7b234cd1 (diff)
downloadpfsense-c26c208f34ce5b6b22567bf47551c066637048d4.zip
pfsense-c26c208f34ce5b6b22567bf47551c066637048d4.tar.gz
Do not allow spaces in load balancer name fields, they are invalid in relayd.
Diffstat (limited to 'usr/local/www/load_balancer_virtual_server_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index 4cbf0e2..e93f0d6 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -85,6 +85,9 @@ if ($_POST) {
if (($_POST['name'] == $config['load_balancer']['virtual_server'][$i]['name']) && ($i != $id))
$input_errors[] = gettext("This virtual server name has already been used. Virtual server names must be unique.");
+ if (strpos($_POST['name'], " ") !== false)
+ $input_errors[] = gettext("You cannot use spaces in the 'name' field.");
+
if (!is_port($_POST['port']))
$input_errors[] = gettext("The port must be an integer between 1 and 65535.");
OpenPOWER on IntegriCloud