Till Brehm
2016-04-07 dc89796900c48363002fb8254848e7bb79c428b4
Fixed: Issue #3314 usage of a POST value in autosub validator vauses issues with API
1 files modified
7 ■■■■ changed files
interface/lib/classes/validate_domain.inc.php 7 ●●●● patch | view | raw | blame | history
interface/lib/classes/validate_domain.inc.php
@@ -84,7 +84,12 @@
        global $app;
        if(empty($field_value) || $field_name != 'subdomain') return; // none set
        $check_domain = $_POST['domain'];
        if(isset($app->remoting_lib->primary_id)) {
            $check_domain = $app->remoting_lib->dataRecord['domain'];
        } else {
            $check_domain = $_POST['domain'];
        }
        $app->uses('ini_parser,getconf');
        $settings = $app->getconf->get_global_config('domains');
        if ($settings['use_domain_module'] == 'y') {