summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-06-16 11:31:07 -0400
committerjim-p <jimp@pfsense.org>2015-06-16 11:31:07 -0400
commit05dea4b71f0ee7c7ec2484daefa54aa24cef4bb8 (patch)
treebae5cbf33f80f2bbe99e3bd6d53de90e81d29120 /usr/local/www
parentf68e2f9f0fe76a0b23a43dd9106fcdadb1783b63 (diff)
downloadpfsense-05dea4b71f0ee7c7ec2484daefa54aa24cef4bb8.zip
pfsense-05dea4b71f0ee7c7ec2484daefa54aa24cef4bb8.tar.gz
Encoding in diag_packet_capture.php
Diffstat (limited to 'usr/local/www')
-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 68e12d4..14be5d1 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -309,7 +309,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>
@@ -317,14 +317,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