fix Unbound Advanced options

This commit is contained in:
Chris Buechler 2014-11-15 18:40:50 -06:00
parent 88a0937dc2
commit b5acc797f8
2 changed files with 3 additions and 2 deletions

View File

@ -177,8 +177,9 @@ EOF;
// Add custom Unbound options
if ($config['unbound']['custom_options']) {
$custom_options_source = explode("\n", $config['unbound']['custom_options']);
$custom_options = "# Unbound custom options\n";
foreach (preg_split('/\s+/', $config['unbound']['custom_options']) as $ent)
foreach ($custom_options_source as $ent)
$custom_options .= $ent."\n";
}

View File

@ -371,7 +371,7 @@ function show_advanced_dns() {
<div id="showadv" <?php if (empty($pconfig['custom_options'])) echo "style='display:none'"; ?>>
<strong><?=gettext("Advanced");?><br /></strong>
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=htmlspecialchars($pconfig['custom_options']);?></textarea><br />
<?=gettext("Enter any additional options you would like to add to the DNS Resolver configuration here, separated by a space or newline"); ?><br />
<?=gettext("Enter any additional configuration parameters to add to the DNS Resolver configuration here, separated by a newline"); ?><br />
</div>
</td>
</tr>