summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-06 15:22:11 +0545
committerRenato Botelho <renato@netgate.com>2016-04-06 07:01:17 -0300
commit4084bcf8a948736feb4ef82bd3d8dff89fb4e2e3 (patch)
tree3c44419e9740bb4eaa7fe2205bf71a6bdd308197 /src
parent6d5e5db2cec9399b78ef61ac9488cd87abc9ee1e (diff)
downloadpfsense-4084bcf8a948736feb4ef82bd3d8dff89fb4e2e3.zip
pfsense-4084bcf8a948736feb4ef82bd3d8dff89fb4e2e3.tar.gz
Only apply htmlentities() once on each data element
Redmine #6079 (cherry picked from commit 82cde7f1067f527df5e902cf1bc7070612d039f4)
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/status_dhcp_leases.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php
index 2981252..1bff34e 100644
--- a/src/usr/local/www/status_dhcp_leases.php
+++ b/src/usr/local/www/status_dhcp_leases.php
@@ -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']?>&amp;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']?>&amp;mac=<?=$data['mac']?>&amp;descr=<?=htmlentities($data['hostname'])?>"></a>
+ <a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>&amp;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']?>&amp;mac=<?=$data['mac']?>"></a>
<?php endif; ?>
OpenPOWER on IntegriCloud