Project

General

Profile

« Previous | Next » 

Revision b97c5ed6

Added by Scott Ullrich over 15 years ago

Use a br instead of a tr.

View differences:

usr/local/www/diag_dns.php
46 46

  
47 47
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
48 48
	$host = trim($_POST['host']);
49

  
49
	$host_esc = escapeshellarg(trim($_POST['host']));
50
	
50 51
	if (!is_hostname($host) || is_ipaddr($host)) 
51 52
		$input_errors[] = "Host must be a valid hostname or IP address.";
52 53

  
......
56 57
		list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4']) = $config['system']['dnsserver'];
57 58
		for ($dnscounter=1; $dnscounter<5; $dnscounter++) {
58 59
			$dns_server = $pconfig['dns' . $dnscounter];
59
			$query_time = `dig {$host} @{$dns_server} | grep Query | cut -d':' -f2`;
60
			$query_time = `dig {$host_esc} @{$dns_server} | grep Query | cut -d':' -f2`;
60 61
			if($query_time == "")
61 62
				$query_time = "No response";
62 63
			$new_qt = array();
......
155 156
			</td>
156 157
		</tr>
157 158
		<?php } ?>
158
		<tr><td>&nbsp;</td></tr>
159 159
		<tr>
160 160
		  <td width="22%" valign="top">&nbsp;</td>
161 161
		  <td width="78%">
162
			<br/>&nbsp;
162 163
            <input name="Submit" type="submit" class="formbtn" value="DNS Lookup">
163 164
		</td>
164 165
		</tr>

Also available in: Unified diff