mediawiki-extensions-AbuseF.../includes
Daimona Eaytoy 74569e20a7 Improve the check for block durations equality
With I5e3764dbec8ac21f20c460181ae78ed73eca92f6 I introduced a function
to check that two blocks with different wordings refer to the same
duration. While that functions works good 99.9% of the time, there's a
highly unlikely but actual problem: if one of the operand is parsed at
time x and the other at time x+1 (in seconds, and this may happen even
if it gets parsed 1 ms later), the 2 durations will be considered
different and this may be annoying. With this patch I introduce another
tiny function which uses strtotime to parse a duration, but uses the
second parameter (=0) to avoid relativeness to the current time. Again,
this isn't likely to occurr, but since the fix is straightforward we'd
better do it. Also, now global durations aren't parsed at every
iteration (previously they were due to the same problem, amplified by
time distance between the first and the last iteration).

Change-Id: I11a078f298aaed9631d7f422c6b9b722d28e73cc
2018-06-04 11:21:37 +00:00
..
api Reduce use of globals in favor of Config 2018-05-02 02:27:26 +00:00
pagers Reduce use of globals in favor of Config 2018-05-02 02:27:26 +00:00
parser Use PHP7 ?? operator 2018-05-31 11:53:03 -07:00
special build: Updating mediawiki/mediawiki-codesniffer to 20.0.0 2018-05-25 23:31:49 +00:00
Views Improve the check for block durations equality 2018-06-04 11:21:37 +00:00
AbuseFilter.php Use PHP7 ?? operator 2018-05-31 11:53:03 -07:00
AbuseFilterChangesList.php Add phan configuration 2018-04-30 08:32:58 +00:00
AbuseFilterHooks.php build: Updating mediawiki/mediawiki-codesniffer to 20.0.0 2018-05-25 23:31:49 +00:00
AbuseFilterModifyLogFormatter.php Actually mark abusefilter creations as such in the AbuseFilter log 2018-01-12 17:03:13 +00:00
AbuseFilterPreAuthenticationProvider.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00
AbuseFilterVariableHolder.php Prevent the user from overriding blacklisted variables 2018-05-04 19:33:12 +02:00
AbuseLogHitFormatter.php
AFComputedVariable.php Add phan configuration 2018-04-30 08:32:58 +00:00
TableDiffFormatterFullContext.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00