Commit 9da1b92e authored by Ad Schellevis's avatar Ad Schellevis

services_dyndns_edit: wrong parameter type for htmlspecialchars, closes...

services_dyndns_edit: wrong parameter type for htmlspecialchars, closes https://github.com/opnsense/core/issues/813
parent 445504da
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment