Commit 50053923 authored by Franco Fichtner's avatar Franco Fichtner

firewall: properly reload cron for scheduled rules; closes #1483

parent c7edcbf8
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("system.inc");
if (!isset($config['filter']['rule'])) { if (!isset($config['filter']['rule'])) {
$config['filter']['rule'] = array(); $config['filter']['rule'] = array();
...@@ -49,6 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -49,6 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$id = $pconfig['id']; $id = $pconfig['id'];
} }
if (isset($pconfig['apply'])) { if (isset($pconfig['apply'])) {
system_cron_configure();
filter_configure(); filter_configure();
clear_subsystem_dirty('filter'); clear_subsystem_dirty('filter');
$savemsg = sprintf( $savemsg = sprintf(
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("system.inc");
require_once("filter.inc"); require_once("filter.inc");
/* TCP flags */ /* TCP flags */
...@@ -522,7 +521,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -522,7 +521,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
// sort filter items per interface, not really necessary but leaves a bit nicer sorted config.xml behind. // sort filter items per interface, not really necessary but leaves a bit nicer sorted config.xml behind.
filter_rules_sort(); filter_rules_sort();
system_cron_configure();
// write to config // write to config
write_config(); write_config();
mark_subsystem_dirty('filter'); mark_subsystem_dirty('filter');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment