diff options
author | BBcan177 <bbcan177@gmail.com> | 2014-12-09 23:04:52 -0500 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2014-12-09 23:04:52 -0500 |
commit | f31c0071522fb74546c06367ade8eaeb1abc19f2 (patch) | |
tree | 3f4adb4358a4fda63ff36ae8b76e3150743b39b9 | |
parent | 3b1f00f56509708d5369b82a81c95e507f5938e0 (diff) | |
download | pfsense-packages-f31c0071522fb74546c06367ade8eaeb1abc19f2.tar.gz pfsense-packages-f31c0071522fb74546c06367ade8eaeb1abc19f2.tar.bz2 pfsense-packages-f31c0071522fb74546c06367ade8eaeb1abc19f2.zip |
Mod to Alerts Tab
- Re-Add /* to grep command. Removed by recent Commit.
-rw-r--r-- | config/pfblockerng/pfblockerng_alerts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php index e60a9664..b14e9210 100644 --- a/config/pfblockerng/pfblockerng_alerts.php +++ b/config/pfblockerng/pfblockerng_alerts.php @@ -653,7 +653,7 @@ if (!empty($fields_array)) { // Report Specific ET IQRisk Details if ($pfb['et_header'] && preg_match("/{$et_header}/", $pfb_query)) { $host1 = preg_replace("/(\d{1,3})\.(\d{1,3}).(\d{1,3}).(\d{1,3})/", '\'$1\.$2\.$3\.$4\'', $host); - $pfb_query = exec("grep -Hm1 {$host1} {$pfb['etdir']} | sed -e 's/^.*[a-zA-Z]\///' -e 's/:.*//' -e 's/\..*/ /' -e 's/ET_/ET IPrep /' "); + $pfb_query = exec("grep -Hm1 {$host1} {$pfb['etdir']}/* | sed -e 's/^.*[a-zA-Z]\///' -e 's/:.*//' -e 's/\..*/ /' -e 's/ET_/ET IPrep /' "); if (empty($pfb_query)) { $host1 = preg_replace("/(\d{1,3})\.(\d{1,3}).(\d{1,3}).(\d{1,3})/", '\'$1.$2.$3.0/24\'', $host); $pfb_query = exec("grep -rHm1 {$host1} {$pfbfolder} | sed -e 's/^.*[a-zA-Z]\///' -e 's/\.txt:/ /' | {$pfb_ex1}"); |