summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-08-06 15:53:29 -0400
committerjim-p <jimp@pfsense.org>2014-08-06 15:55:51 -0400
commitc3e7784158a020f9fbfb4cb87be8a54ab77f1664 (patch)
tree64a31a6730c09793016cdf3418143904fcf73939 /usr/local/www
parent92ca4bc3b4d217a8303ff1ac95eb539ba84727e4 (diff)
downloadpfsense-c3e7784158a020f9fbfb4cb87be8a54ab77f1664.zip
pfsense-c3e7784158a020f9fbfb4cb87be8a54ab77f1664.tar.gz
Encode interface/VIP descriptions before displaying them on the GRE and GIF pages also;
While here, the GRE page was missing IP aliases from its list of bind IPs, add it in.
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/interfaces_gif_edit.php2
-rw-r--r--usr/local/www/interfaces_gre_edit.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_gif_edit.php b/usr/local/www/interfaces_gif_edit.php
index 42cca50..517965b 100644
--- a/usr/local/www/interfaces_gif_edit.php
+++ b/usr/local/www/interfaces_gif_edit.php
@@ -161,7 +161,7 @@ include("head.inc");
echo "<option value=\"{$ifn}\"";
if ($ifn == $pconfig['if'])
echo " selected=\"selected\"";
- echo ">{$ifinfo}</option>";
+ echo ">" . htmlspecialchars($ifinfo) . "</option>\n";
}
?>
</select>
diff --git a/usr/local/www/interfaces_gre_edit.php b/usr/local/www/interfaces_gre_edit.php
index 64c34a1..c38c222 100644
--- a/usr/local/www/interfaces_gre_edit.php
+++ b/usr/local/www/interfaces_gre_edit.php
@@ -148,11 +148,14 @@ include("head.inc");
$carplist = get_configured_carp_interface_list();
foreach ($carplist as $cif => $carpip)
$portlist[$cif] = $carpip." (".get_vip_descr($carpip).")";
+ $aliaslist = get_configured_ip_aliases_list();
+ foreach ($aliaslist as $aliasip => $aliasif)
+ $portlist[$aliasif.'|'.$aliasip] = $aliasip." (".get_vip_descr($aliasip).")";
foreach ($portlist as $ifn => $ifinfo) {
echo "<option value=\"{$ifn}\"";
if ($ifn == $pconfig['if'])
echo " selected=\"selected\"";
- echo ">{$ifinfo}</option>";
+ echo ">" . htmlspecialchars($ifinfo) . "</option>\n";
}
?>
</select>
OpenPOWER on IntegriCloud