services_dyndns_edit: wrong parameter type for htmlspecialchars, closes https://github.com/opnsense/core/issues/813

This commit is contained in:
Ad Schellevis 2016-03-11 13:04:36 +01:00
parent 445504da33
commit 9da1b92e26

View File

@ -262,7 +262,7 @@ include("head.inc");
$iflist = array_merge($iflist, return_gateway_groups_array());
foreach ($iflist as $if => $ifdesc):?>
<option value="<?=$if;?>" <?=$pconfig['interface'] == $if ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($ifdesc);?>
<?=is_array($ifdesc) ? $if : htmlspecialchars($ifdesc);?>
</option>
<?php
@ -279,7 +279,7 @@ include("head.inc");
$iflist = array_merge($iflist, return_gateway_groups_array());
foreach ($iflist as $if => $ifdesc):?>
<option value="<?=$if;?>" <?=$pconfig['requestif'] == $if ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($ifdesc);?>
<?=is_array($ifdesc) ? $if : htmlspecialchars($ifdesc);?>
</option>
<?php