diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-05-20 09:36:35 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-05-20 09:36:35 -0400 |
commit | 2cd38ef500629821e72ddbce30c4bbd54ca201aa (patch) | |
tree | e83625ffe4ef5275a45b3e80a29c1a5712b84f64 /config/suricata | |
parent | 59ed3438729fd56452f58a0f79f0c288db982ac3 (diff) | |
download | pfsense-packages-2cd38ef500629821e72ddbce30c4bbd54ca201aa.tar.gz pfsense-packages-2cd38ef500629821e72ddbce30c4bbd54ca201aa.tar.bz2 pfsense-packages-2cd38ef500629821e72ddbce30c4bbd54ca201aa.zip |
Need to include "instance" val in $_POST data for Ajax.
Diffstat (limited to 'config/suricata')
-rw-r--r-- | config/suricata/suricata_logs_browser.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/suricata/suricata_logs_browser.php b/config/suricata/suricata_logs_browser.php index 566ab93f..b949b499 100644 --- a/config/suricata/suricata_logs_browser.php +++ b/config/suricata/suricata_logs_browser.php @@ -48,6 +48,8 @@ elseif (isset($_GET['instance']) && is_numericint($_GET['instance'])) if (empty($instanceid)) $instanceid = 0; +log_error("Instance ID: {$instanceid}"); + if (!is_array($config['installedpackages']['suricata']['rule'])) $config['installedpackages']['suricata']['rule'] = array(); $a_instance = $config['installedpackages']['suricata']['rule']; @@ -102,7 +104,7 @@ if ($input_errors) { jQuery.ajax( "<?=$_SERVER['SCRIPT_NAME'];?>", { type: 'POST', - data: "action=load&file=" + jQuery("#logFile").val(), + data: "instance=" + jQuery("#instance").val() + "&action=load&file=" + jQuery("#logFile").val(), complete: loadComplete } ); |