mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only apply htmlentities() once on each data element
Redmine #6079
(cherry picked from commit 82cde7f106)
This commit is contained in:
parent
6d5e5db2ce
commit
4084bcf8a9
@ -455,8 +455,8 @@ foreach ($leases as $data):
|
||||
(<?=$mac_man[$mac_hi]?>)
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?=htmlentities($data['hostname'])?></td>
|
||||
<td><?=htmlentities($data['descr'])?></td>
|
||||
<td><?=$data['hostname']?></td>
|
||||
<td><?=$data['descr']?></td>
|
||||
<? if ($data['type'] != "static"): ?>
|
||||
<td><?=adjust_gmt($data['start'])?></td>
|
||||
<td><?=adjust_gmt($data['end'])?></td>
|
||||
@ -472,7 +472,7 @@ foreach ($leases as $data):
|
||||
<?php else: ?>
|
||||
<a class="fa fa-pencil" title="<?=gettext('Edit static mapping')?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>"></a>
|
||||
<?php endif; ?>
|
||||
<a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=htmlentities($data['hostname'])?>"></a>
|
||||
<a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=$data['hostname']?>"></a>
|
||||
<?php if ($data['online'] != $online_string):?>
|
||||
<a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>"></a>
|
||||
<?php endif; ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user