tbrehm
2012-04-16 9add999c5036b0e32acbac37001adbbbc62dfa3c
- Skip processing of vhost in apache plugin when domain field is empty.
- Improved error message in client and reseller language file.
3 files modified
8 ■■■■ changed files
interface/web/client/lib/lang/en_client.lng 2 ●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_reseller.lng 2 ●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php 4 ●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng
@@ -109,5 +109,5 @@
$wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.';
$wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.';
$wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.';
$wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number';
$wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number.';
?>
interface/web/client/lib/lang/en_reseller.lng
@@ -108,5 +108,5 @@
$wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.';
$wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.';
$wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.';
$wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number';
$wb["username_error_collision"] = 'The username may not start with the word -web- or -web- followed by a number.';
?>
server/plugins-available/apache2_plugin.inc.php
@@ -288,6 +288,10 @@
            $app->log('Websites cannot be owned by the root user or group.',LOGLEVEL_WARN);
            return 0;
        }
        if(trim($data['new']['domain']) == '') {
            $app->log('domain is empty',LOGLEVEL_WARN);
            return 0;
        }
        
        // Create group and user, if not exist
        $app->uses('system');