summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index 554bf36..ea429d6 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -85,8 +85,8 @@ 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 (preg_match('/[ \/]/', $_POST['name']))
+ $input_errors[] = gettext("You cannot use spaces or slashes in the 'name' field.");
if ($_POST['port'] != "" && !is_portoralias($_POST['port']))
$input_errors[] = gettext("The port must be an integer between 1 and 65535, a port alias, or left blank.");
OpenPOWER on IntegriCloud