mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-04 18:38:25 +00:00
8e4a1237f1
Hook on to CheckUserInsertPrivateEventRow and CheckUserInsertLogEventRow to override the IP, XFF and User-Agent string when the user is the abuse filter user for log events. These two hooks are being added as log entries are being removed from cu_changes and added into two new tables. Because the columns and their names are different for these tables, reusing the same hook won't work for callers that rely on setting values for a specific column name. Edits and log entries performed by the abuse filter user need to be marked as being by the software (and not using the IP, XFF and User-Agent provided in the main request). These hooks will not be run until the appropriate config is set to write to the two new tables. Until that point using the one currently defined hook will work for all actions. Bug: T324907 Bug: T44345 Depends-On: I7c7754323ade9a8d96273c1742f30b1b5fbe5828 Follow-Up: Idd77545af94f9f9930d9ff38ab6423a72e680df9 Change-Id: Id78417e9d95220946f110afbe1430df5b3bb4f4f |
||
---|---|---|
.. | ||
Api | ||
ChangeTags | ||
Consequences | ||
EditBox | ||
Filter | ||
Hooks | ||
LogFormatter | ||
Pager | ||
Parser | ||
Special | ||
VariableGenerator | ||
Variables | ||
View | ||
Watcher | ||
AbuseFilter.php | ||
AbuseFilterChangesList.php | ||
AbuseFilterPermissionManager.php | ||
AbuseFilterPreAuthenticationProvider.php | ||
AbuseFilterServices.php | ||
AbuseLogger.php | ||
AbuseLoggerFactory.php | ||
ActionSpecifier.php | ||
BlockAutopromoteStore.php | ||
CentralDBManager.php | ||
CentralDBNotAvailableException.php | ||
EchoNotifier.php | ||
EditRevUpdater.php | ||
EditStashCache.php | ||
EmergencyCache.php | ||
FilterCompare.php | ||
FilterImporter.php | ||
FilterLookup.php | ||
FilterProfiler.php | ||
FilterRunner.php | ||
FilterRunnerFactory.php | ||
FilterStore.php | ||
FilterUser.php | ||
FilterValidator.php | ||
GlobalNameUtils.php | ||
InvalidImportDataException.php | ||
KeywordsManager.php | ||
RunnerData.php | ||
ServiceWiring.php | ||
SpecsFormatter.php | ||
TableDiffFormatterFullContext.php | ||
TextExtractor.php | ||
ThrottleFilterPresentationModel.php |