mediawiki-extensions-AbuseF.../includes/Api
STran fe0b1cb9e9 Add user_unnamed_ip variable
After temporary accounts are enabled, filters that rely on an ip
in the `user_name` will fail (eg. `ip_in_range` and `ip_in_ranges`).
To keep these filters working:

- Expose the IP through another variable, `user_unnamed_ip`, that can be
  used instead of `user_name`.
- The variable is scoped to only reveal the IPs of temporary accounts
  and un-logged in users.
- Wikis that don't have temporary accounts enabled will be able to see
  this variable but it won't provide information that `user_name`
  wasn't already providing
- Introduce the concept of transforming variable values before writing
  to the blob store and after retrieval, as IPs need to be deleted from
  the logs eventually and can't be stored as-is in the amend-only blob
  store

Bug: T357772
Change-Id: I8c11e06ccb9e78b9a991e033fe43f5dded8f7bb2
2024-05-23 07:19:48 -07:00
..
AbuseLogPrivateDetails.php Fix usage of ApiBase::PARAM_* deprecated constants 2022-04-04 00:49:37 +00:00
CheckMatch.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
CheckSyntax.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-07-03 16:37:18 +02:00
EvalExpression.php Use namespaced classes 2023-12-10 23:03:12 +01:00
QueryAbuseFilters.php Use namespaced classes 2023-12-10 23:03:12 +01:00
QueryAbuseLog.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
UnblockAutopromote.php Avoid TestUser in non-database tests 2023-08-06 22:18:49 +00:00