summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/status_gateways.php6
-rw-r--r--src/usr/local/www/system_gateways.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/status_gateways.php b/src/usr/local/www/status_gateways.php
index 2c7ecf4..97c0051 100644
--- a/src/usr/local/www/status_gateways.php
+++ b/src/usr/local/www/status_gateways.php
@@ -106,7 +106,7 @@ display_top_tabs($tab_array);
?>
<tr>
<td>
- <?=$gateway['name'];?>
+ <?=htmlspecialchars($gateway['name']);?>
</td>
<td>
<?php echo lookup_gateway_ip_by_name($gname);?>
@@ -116,7 +116,7 @@ display_top_tabs($tab_array);
if ($gateways_status[$gname]) {
echo $gateways_status[$gname]['monitorip'];
} else {
- echo $gateway['monitorip'];
+ echo htmlspecialchars($gateway['monitorip']);
}
?>
</td>
@@ -180,7 +180,7 @@ display_top_tabs($tab_array);
</td>
<td>
- <?=$gateway['descr']; ?>
+ <?=htmlspecialchars($gateway['descr']); ?>
</td>
</tr>
<?php } ?> <!-- End-of-foreach -->
diff --git a/src/usr/local/www/system_gateways.php b/src/usr/local/www/system_gateways.php
index e297053..271f8f3 100644
--- a/src/usr/local/www/system_gateways.php
+++ b/src/usr/local/www/system_gateways.php
@@ -296,7 +296,7 @@ foreach ($a_gateways as $i => $gateway):
<tr<?=($icon != 'fa-check-circle-o')? ' class="disabled"' : ''?>>
<td title="<?=$title?>"><i class="fa <?=$icon?>"></i></td>
<td>
- <?=$gateway['name']?>
+ <?=htmlspecialchars($gateway['name'])?>
<?php
if (isset($gateway['defaultgw'])) {
echo " <strong>(default)</strong>";
@@ -307,7 +307,7 @@ foreach ($a_gateways as $i => $gateway):
<?=htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']))?>
</td>
<td>
- <?=$gateway['gateway']?>
+ <?=htmlspecialchars($gateway['gateway'])?>
</td>
<td>
<?=htmlspecialchars($gateway['monitor'])?>
OpenPOWER on IntegriCloud