summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-12-21 09:17:42 -0500
committerjim-p <jimp@pfsense.org>2015-12-21 09:17:42 -0500
commit8ebf884f82c80f8623bfba2a37aef3cf7079ed79 (patch)
treef9500f39f5de4d5ad5145e096be84c759164abc5 /src/usr/local/www/system_gateways.php
parentffa383cb968dc4a57421e3fcaf31a7b5284d5e9b (diff)
downloadpfsense-8ebf884f82c80f8623bfba2a37aef3cf7079ed79.zip
pfsense-8ebf884f82c80f8623bfba2a37aef3cf7079ed79.tar.gz
Encode gateway attributes before printing
Diffstat (limited to 'src/usr/local/www/system_gateways.php')
-rw-r--r--src/usr/local/www/system_gateways.php4
1 files changed, 2 insertions, 2 deletions
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