Revision d83a4dfc
Added by Jim Pingle over 9 years ago
usr/local/www/system.php | ||
---|---|---|
347 | 347 |
?> |
348 | 348 |
<tr> |
349 | 349 |
<td> |
350 |
<input name="dns<?php echo $dnscounter;?>" type="text" class="formfld unknown" id="dns<?php echo $dnscounter;?>" size="28" value="<?php echo $pconfig['dns'.$dnscounter];?>" />
|
|
350 |
<input name="dns<?php echo $dnscounter;?>" type="text" class="formfld unknown" id="dns<?php echo $dnscounter;?>" size="28" value="<?php echo htmlspecialchars($pconfig['dns'.$dnscounter]);?>" />
|
|
351 | 351 |
</td> |
352 | 352 |
<td> |
353 | 353 |
<?php if ($multiwan): ?> |
... | ... | |
374 | 374 |
} else { |
375 | 375 |
$selected = ""; |
376 | 376 |
} |
377 |
echo "<option value='$gwname' $selected>$gwname - {$gwitem['friendlyiface']} - {$gwitem['gateway']}</option>\n";
|
|
377 |
echo "<option value='" . htmlspecialchars($gwname) . "' $selected>" . htmlspecialchars("{$gwname} - {$gwitem['friendlyiface']} - {$gwitem['gateway']}") . " </option>\n";
|
|
378 | 378 |
} |
379 | 379 |
?> |
380 | 380 |
</select> |
Also available in: Unified diff
Encode DNS servers and their associated gateways before printing