TIME_MON
variable: inconsistent ranges between 2.x
and 3.x
engines.
#3305
Labels
3.x
Related to ModSecurity version 3.x
Describe the bug
Both
v2
andv3
docs are reporting the following line aboutTIME_MON
variable:But Apache docs provide the following:
And v2 implementation seems that it is indeed following it (Thanks @airween for the pointer):
Logs and dumps
Same rule and same request:
v2:
v3:
Expected behavior
Consistency across engines, and/or documentation aligned.
Additional context
TIME
variables, and it would be great to come up with a unified behavior across all the engines. I'm personally in favour of ranging between1-12
as it sounds very natural and as far as I know it is the standard way. E.g. ISO_8601 reports:[MM] indicates a two-digit month of the year, 01 through 12
TIME_WDAY
is not consistent. This time docs are reporting different behaviours:This variable holds the current weekday value (1–7), where Monday is 1
This variable holds the current weekday value (0–6). The following rule triggers only on Satur- day and Sunday
The text was updated successfully, but these errors were encountered: