From 258d1024de2f5c4059c666845f7f6e2fda5c0c40 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 03 May 2012 10:09:34 -0400 Subject: [PATCH] Fixed: FS#2205 - swappages variable is not set in openvz vhost template --- interface/lib/classes/validate_client.inc.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/interface/lib/classes/validate_client.inc.php b/interface/lib/classes/validate_client.inc.php index fa0f102..9b0546a 100644 --- a/interface/lib/classes/validate_client.inc.php +++ b/interface/lib/classes/validate_client.inc.php @@ -77,7 +77,7 @@ $app->uses('getconf'); $global_config = $app->getconf->get_global_config('sites'); - if(substr($field_value,0,3) == 'web' && + if((trim($field_value) == 'web' || preg_match('/^web[0-9]/',$field_value)) && ($global_config['ftpuser_prefix'] == '[CLIENTNAME]' || $global_config['ftpuser_prefix'] == '' || $global_config['shelluser_prefix'] == '[CLIENTNAME]' || -- Gitblit v1.9.1