Till Brehm
2016-05-27 aaeba2a37f3f6762fd7400c6792f832250824e64
Fixed: #3932 Client web form shows * in IPv4 field IPv6 field.
1 files modified
3 ■■■■ changed files
interface/web/sites/web_vhost_domain_edit.php 3 ●●●● patch | view | raw | blame | history
interface/web/sites/web_vhost_domain_edit.php
@@ -219,8 +219,9 @@
            //* Fill the IPv6 select field with the IP addresses that are allowed for this client
            $sql = "SELECT ip_address FROM server_ip WHERE server_id IN ? AND ip_type = 'IPv6' AND (client_id = 0 OR client_id=?)";
            $ips = $app->db->queryAllRecords($sql, explode(',', $client['web_servers']), $_SESSION['s']['user']['client_id']);
            $ip_select = ($web_config[$server_id]['enable_ip_wildcard'] == 'y')?"<option value='*'>*</option>":"";
            //$ip_select = ($web_config[$server_id]['enable_ip_wildcard'] == 'y')?"<option value='*'>*</option>":"";
            //$ip_select = "";
            $ip_select = "<option value=''></option>";
            if(is_array($ips)) {
                foreach( $ips as $ip) {
                    $selected = ($ip["ip_address"] == $this->dataRecord["ipv6_address"])?'SELECTED':'';