diff options
author | jim-p <jimp@pfsense.org> | 2015-12-21 09:17:42 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-12-21 09:17:42 -0500 |
commit | 8ebf884f82c80f8623bfba2a37aef3cf7079ed79 (patch) | |
tree | f9500f39f5de4d5ad5145e096be84c759164abc5 /src/usr/local/www/status_gateways.php | |
parent | ffa383cb968dc4a57421e3fcaf31a7b5284d5e9b (diff) | |
download | pfsense-8ebf884f82c80f8623bfba2a37aef3cf7079ed79.zip pfsense-8ebf884f82c80f8623bfba2a37aef3cf7079ed79.tar.gz |
Encode gateway attributes before printing
Diffstat (limited to 'src/usr/local/www/status_gateways.php')
-rw-r--r-- | src/usr/local/www/status_gateways.php | 6 |
1 files changed, 3 insertions, 3 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 --> |