Commit 81f6f347 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit 9da1b92e)
parent 4cf5966d
...@@ -261,7 +261,7 @@ include("head.inc"); ...@@ -261,7 +261,7 @@ include("head.inc");
$iflist = array_merge($iflist, return_gateway_groups_array()); $iflist = array_merge($iflist, return_gateway_groups_array());
foreach ($iflist as $if => $ifdesc):?> foreach ($iflist as $if => $ifdesc):?>
<option value="<?=$if;?>" <?=$pconfig['interface'] == $if ? "selected=\"selected\"" : "";?>> <option value="<?=$if;?>" <?=$pconfig['interface'] == $if ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($ifdesc);?> <?=is_array($ifdesc) ? $if : htmlspecialchars($ifdesc);?>
</option> </option>
<?php <?php
...@@ -278,7 +278,7 @@ include("head.inc"); ...@@ -278,7 +278,7 @@ include("head.inc");
$iflist = array_merge($iflist, return_gateway_groups_array()); $iflist = array_merge($iflist, return_gateway_groups_array());
foreach ($iflist as $if => $ifdesc):?> foreach ($iflist as $if => $ifdesc):?>
<option value="<?=$if;?>" <?=$pconfig['requestif'] == $if ? "selected=\"selected\"" : "";?>> <option value="<?=$if;?>" <?=$pconfig['requestif'] == $if ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($ifdesc);?> <?=is_array($ifdesc) ? $if : htmlspecialchars($ifdesc);?>
</option> </option>
<?php <?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