summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-06-16 11:30:16 -0400
committerjim-p <jimp@pfsense.org>2015-06-16 11:30:16 -0400
commitf4bbd64dec0ba1b9bcf3b36d640f839dfebec348 (patch)
tree5fb6d047b3ef3a6f025f2b76aacde224fea5e5b0
parent9162143f1258f82c3b731370a8166a3ccaba6509 (diff)
downloadpfsense-f4bbd64dec0ba1b9bcf3b36d640f839dfebec348.zip
pfsense-f4bbd64dec0ba1b9bcf3b36d640f839dfebec348.tar.gz
Encoding in diag_packet_capture.php
-rw-r--r--usr/local/www/diag_packet_capture.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 73fb7c4..36c4807 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -307,7 +307,7 @@ include("fbegin.inc");
<tr>
<td width="17%" valign="top" class="vncellreq"><?=gettext("Port");?></td>
<td colspan="2" width="83%" class="vtable">
- <input name="port" class="formfld unknown" id="port" size="5" value="<?=$port;?>" />
+ <input name="port" class="formfld unknown" id="port" size="5" value="<?=htmlspecialchars($port);?>" />
<br /><?=gettext("The port can be either the source or destination port. The packet capture will look for this port in either field.");?>
<br /><?=gettext("Leave blank if you do not want to filter by port.");?>
</td>
@@ -315,14 +315,14 @@ include("fbegin.inc");
<tr>
<td width="17%" valign="top" class="vncellreq"><?=gettext("Packet Length");?></td>
<td colspan="2" width="83%" class="vtable">
- <input name="snaplen" class="formfld unknown" id="snaplen" size="5" value="<?=$snaplen;?>" />
+ <input name="snaplen" class="formfld unknown" id="snaplen" size="5" value="<?=htmlspecialchars($snaplen);?>" />
<br /><?=gettext("The Packet length is the number of bytes of each packet that will be captured. Default value is 0, which will capture the entire frame regardless of its size.");?>
</td>
</tr>
<tr>
<td width="17%" valign="top" class="vncellreq"><?=gettext("Count");?></td>
<td colspan="2" width="83%" class="vtable">
- <input name="count" class="formfld unknown" id="count" size="5" value="<?=$count;?>" />
+ <input name="count" class="formfld unknown" id="count" size="5" value="<?=htmlspecialchars($count);?>" />
<br /><?=gettext("This is the number of packets the packet capture will grab. Default value is 100.") . "<br />" . gettext("Enter 0 (zero) for no count limit.");?>
</td>
</tr>
OpenPOWER on IntegriCloud