summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-12-21 10:29:40 -0500
committerjim-p <jimp@pfsense.org>2015-12-21 10:29:40 -0500
commit8ae9a909901ddb13306e6ac494240ff1fa720c4d (patch)
tree84a5b2efdc4111a79732ebd5cdb3231f30b0d516 /src/usr/local/www/widgets/widgets/system_information.widget.php
parent934b307814786250e1b3110030996d8166197a1d (diff)
downloadpfsense-8ae9a909901ddb13306e6ac494240ff1fa720c4d.zip
pfsense-8ae9a909901ddb13306e6ac494240ff1fa720c4d.tar.gz
Encode hostname before printing; remove some related dead code.
Diffstat (limited to 'src/usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php
index 03c439b..c5da475 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -111,7 +111,7 @@ $filesystems = get_mounted_filesystems();
<tbody>
<tr>
<th><?=gettext("Name");?></th>
- <td><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td>
+ <td><?php echo htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']); ?></td>
</tr>
<tr>
<th><?=gettext("Version");?></th>
OpenPOWER on IntegriCloud