summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorphildd <ict.advisor@nepal.inf.org>2012-08-30 07:56:17 +0545
committerphildd <ict.advisor@nepal.inf.org>2012-08-30 07:56:17 +0545
commit50b3fc5a0e1fb99747c325f6f5746f47d01e4f04 (patch)
treeb866a162ed09aa3dd8c6207eb6db00d290f7954e /etc
parent0649859138161c1cf49032348114cd683e212fbe (diff)
downloadpfsense-50b3fc5a0e1fb99747c325f6f5746f47d01e4f04.zip
pfsense-50b3fc5a0e1fb99747c325f6f5746f47d01e4f04.tar.gz
Month matching for scheduler rules
Fix some obvious things in the firewall scheduled rules code. If a user has some rules with a month specified and some without, then this will make a difference. Might fix bug #2614?
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c5a8f70..8da51bd 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -3015,7 +3015,7 @@ function filter_get_time_based_rule_status($schedule) {
if($timeday['month'])
$month = $timeday['month'];
else
- $week = "";
+ $month = "";
if($timeday['day'])
$day = $timeday['day'];
else
@@ -3066,9 +3066,6 @@ function filter_tdr_day($schedule) {
* Calculate day of month.
* IE: 29th of may
*/
- $weekday = date("w");
- if($weekday == 0)
- $weekday = 7;
$date = date("d");
$defined_days = explode(",", $schedule);
if($g['debug'])
@@ -3096,7 +3093,7 @@ function filter_tdr_hour($schedule) {
function filter_tdr_position($schedule) {
global $g;
/*
- * Calculate possition, ie: day of week.
+ * Calculate position, ie: day of week.
* Sunday = 7, Monday = 1, Tuesday = 2
* Weds = 3, Thursday = 4, Friday = 5,
* Saturday = 6
OpenPOWER on IntegriCloud