diff options
Diffstat (limited to 'packages/snort')
-rw-r--r-- | packages/snort/snort_check_for_rule_updates.php | 2 | ||||
-rw-r--r-- | packages/snort/snort_download_rules.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/snort/snort_check_for_rule_updates.php b/packages/snort/snort_check_for_rule_updates.php index 40136f40..4127b514 100644 --- a/packages/snort/snort_check_for_rule_updates.php +++ b/packages/snort/snort_check_for_rule_updates.php @@ -40,7 +40,7 @@ $last_ruleset_download = $config['installedpackages']['snort']['last_ruleset_dow $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); if (preg_match_all("/.*RELEASED\: (.*)\</", $text, $matches)) $last_update_date = trim($matches[1][0]); -$date1ts = strtotime($last_ruleset_download); +$date1ts = strtotime($last_update_date); $date2ts = strtotime($last_ruleset_download); /* is there a newer ruleset available? */ if($date1ts > $date2ts or !$last_ruleset_download) { diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index 948b9f14..1bda5491 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -97,7 +97,7 @@ include("head.inc"); echo "<tr><td colspan='2'>You must obtain an oinkid from snort.com and set its value in the Snort settings tab in order to start the download process.</td></tr>"; } else { /* get time stamps for comparison operations */ - $date1ts = strtotime($last_ruleset_download); + $date1ts = strtotime($last_update_date); $date2ts = strtotime($last_ruleset_download); /* is there a newer ruleset available? */ if($date1ts > $date2ts or !$last_ruleset_download) |