summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-04-07 12:00:32 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-04-07 12:00:32 -0400
commit5d7881615de2fbeb44c1f3ab8903b52969538f9c (patch)
treecc3aaa160645e06fb6b7b636ba3f53d07110d579 /usr
parentc76fc19f32a34b91ece34740593f86978f4a8911 (diff)
downloadpfsense-5d7881615de2fbeb44c1f3ab8903b52969538f9c.zip
pfsense-5d7881615de2fbeb44c1f3ab8903b52969538f9c.tar.gz
When using ' variables are not expanded. Use double quotes so that the variable is exanded
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_packet_capture.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 8a9cb41..02d8217 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -194,7 +194,7 @@ include("fbegin.inc");
<?php
/* check to see if packet capture tcpdump is already running */
- $processcheck = (trim(shell_exec('/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep $fn | /usr/bin/grep -v pflog')));
+ $processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/grep -v pflog")));
$processisrunning = false;
OpenPOWER on IntegriCloud