mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-29 00:10:26 +00:00
e8471a717c
This replaces the previous pattern of callers having to use RevisionLookup if the result was 'implicit'. Also, in some cases where we were just hiding things if the visibility was !== true, properly handle the implicit case by using the new method. Make the new method return string constants rather than bool|string. The new method also fixes some potential info leaks which happened when the row was hidden, the user could view suppressed AbuseLog entries, but the associated revision was also deleted and the user couldn't see it (this shouldn't be relevant for WMF wikis since AF deletion is oversight-level). Also add a bunch of tests for the various cases to ensure we don't regress again. Bug: T261532 Change-Id: I929f865acf5d207b739cb3af043f70cb59243ee0 |
||
---|---|---|
.. | ||
ChangeTags | ||
Consequences | ||
Filter | ||
Hooks | ||
Parser | ||
Special | ||
VariableGenerator | ||
Variables | ||
Watcher | ||
AbuseFilterPermissionManagerTest.php | ||
AbuseLoggerFactoryTest.php | ||
BlockAutopromoteStoreTest.php | ||
CentralDBManagerTest.php | ||
EditBoxBuilderFactoryTest.php | ||
EditRevUpdaterTest.php | ||
EditStashCacheTest.php | ||
EmergencyCacheTest.php | ||
FilterCompareTest.php | ||
FilterImporterTest.php | ||
FilterLookupTest.php | ||
FilterProfilerTest.php | ||
FilterRunnerFactoryTest.php | ||
FilterRunnerTest.php | ||
FilterStoreTest.php | ||
FilterValidatorTest.php | ||
GlobalNameUtilsTest.php | ||
KeywordsManagerTest.php | ||
RunnerDataTest.php | ||
SpecsFormatterTest.php | ||
TextExtractorTest.php |