wiki.techinc.nl/includes
Gergő Tisza 9bd9289c6c filerepo: Improve identification of ForeignAPIRepo requests
These requests are usually sent to a wiki operated by a different
organization so UA etiquette is important.
* Add the site's URL (the URL of the main page, more specifically)
  as a contact address.
* Add the site's URL as a referer as well.

Considered but not done:
* Use $wgEmergencyContact as the contact part of the UA. It's not
  guaranteed to be set correctly, while the main page URL always
  exists and will usually be enough to pinpoint the wiki (except
  maybe in some intranet scenarios).
* Include information about the user making the request. Would
  be a privacy risk + probably useless due to caching.
* Include information about the page the request is for. Would
  require lots of refactoring (making the patch harder to
  backport) or relying on the context title (which might be
  fragile), and in any case probably unreliable due to caching,
  and doesn't seem very relevant to the operator of the foreign
  site.

Bug: T400881
Change-Id: I968fac6ee0ebbc5a2bd3244f57851eb64125c93d
2025-08-18 21:02:23 +00:00
..
actions Apply proper restrictions on file revert action 2025-03-24 12:55:44 +00:00
api Localisation updates from https://translatewiki.net. 2025-08-12 10:08:28 +00:00
auth SECURITY: Allow extensions to supress the reauth flag on login 2025-06-30 19:58:42 +01:00
block block: Fix DBS::acquireTarget() race using GET_LOCK() 2025-04-07 11:43:34 +00:00
cache Cache: Move MessageCache hook interfaces into correct folder 2025-07-02 00:34:15 +01:00
Category
changetags ChangeTags: Optimize label and description parsing 2025-04-03 18:24:46 +01:00
collation Use namespaced classes 2024-10-21 20:41:20 +02:00
CommentFormatter
CommentStore
composer In .htaccess deny files, use "Satisfy All" 2025-04-04 13:17:15 +00:00
config
content
context
dao
db Merge "CloneDatabase: Remove debug logging" 2024-10-17 23:38:11 +00:00
debug logger: Make log() methods return void 2025-06-18 02:21:42 +00:00
deferred Fix GREATEST usage in site_stats 2025-03-20 15:48:17 +00:00
diff diff: Avoid Phan warning with some Wikidiff2 versions 2025-07-25 17:18:53 +00:00
edit parser: Gracefully handle invalid ParsoidRenderID keys 2025-02-04 14:54:31 +00:00
editpage PermissionManager: Differentiate between cascading protection of file content and file pages 2025-03-24 13:31:34 +00:00
exception exception: Skip use of HookRunner when not autoloaded 2025-06-28 20:17:53 +00:00
export Use namespaced classes 2024-10-21 20:41:20 +02:00
ExternalLinks ExternalLinks: fix mailto: links reversal 2025-02-28 16:33:54 +00:00
externalstore Use namespaced classes 2024-10-21 20:41:20 +02:00
Feed SECURITY: Escape newpage message in FeedUtils 2025-04-17 19:13:20 +00:00
filebackend filebackend: Check for old alias in FileBackendMultiWrite 2024-10-22 01:32:54 +02:00
filerepo filerepo: Improve identification of ForeignAPIRepo requests 2025-08-18 21:02:23 +00:00
gallery Use namespaced classes 2024-10-21 20:41:20 +02:00
historyblob
Hook
HookContainer WhatLinksHere: Allow extensible filters 2024-10-21 14:27:53 +05:30
Html SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
htmlform SECURITY: Escape usernames in HTMLUserTextField validation errors 2025-06-30 20:57:16 +01:00
http
import Drop PHP 7.4/8.0 support from master (forward-port from MW 1.42) 2025-06-18 10:53:22 +01:00
installer Localisation updates from https://translatewiki.net. 2025-08-12 10:08:28 +00:00
interwiki
jobqueue RefreshLinksJob: Check hastext before comparing HTML 2025-06-25 08:21:23 +00:00
json
language Cache: Move MessageCache hook interfaces into correct folder 2025-07-02 00:34:15 +01:00
languages Add Central Kanuri (knc), deprecate Kanuri (kr) 2024-10-20 19:18:46 +00:00
libs rdbms: Fix read-only detection for MariaDB 12 2025-08-13 14:08:37 +00:00
linkeddata
linker
logging SECURITY: Fix log entry search revealing suppressed data to users with 'deletedhistory' rights 2025-04-10 15:56:06 +01:00
mail
media Exif: Handle malformed gps tags 2025-07-28 16:19:44 +00:00
Message SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
Navigation
objectcache objectcache: Cast explicitly to integer 2025-05-12 11:24:42 +00:00
Output Skin: [BREAKING CHANGE] Remove support for rendering outside body element 2024-10-30 15:18:51 +00:00
OutputTransform SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
page ImagePage: Remove PNG previews line for native SVG rendering 2025-07-31 21:51:22 +00:00
pager ContributionsPager: Fix getTemplateParams() parameter 2024-10-25 13:52:47 +00:00
ParamValidator/TypeDef
parser ParserOutput: Prepare to allow JsonCodec serialization of TOCData 2025-07-26 01:18:35 +00:00
password
Permissions PermissionManager: Fix missingPermissionError() not returning early when $short is true. 2025-07-18 20:07:08 +00:00
poolcounter objectcache: Move RedisConnRef.php to /libs/objectcache/ 2024-11-07 08:40:54 +00:00
preferences Add explanation text for "Allow emails from brand-new users" 2025-02-21 22:34:44 +00:00
profiler
recentchanges objectcache: Move RedisConnRef.php to /libs/objectcache/ 2024-11-07 08:40:54 +00:00
registration
RenameUser
Request Request: Improve log message when headers already sent 2025-03-10 15:12:31 +00:00
ResourceLoader Drop a few phan PhanImpossibleTypeComparison suppressions now we've dropped PHP 7.4 2025-06-18 10:54:01 +01:00
Rest Localisation updates from https://translatewiki.net. 2025-08-12 10:08:28 +00:00
Revision
revisiondelete RevDelList: Ensure setVisibility always includes itemStatuses in value if applicable 2025-03-08 01:53:49 +00:00
revisionlist
search rdbms: fix table prefixing in "FOR UPDATE" clause generation in Postgres 2025-06-24 22:33:30 +01:00
session session: Do not set session.use_trans_sid 2025-01-06 22:12:05 +00:00
Settings
shell FileRepo: Add support for the new Shellbox large file feature 2024-10-29 02:50:07 +00:00
site
SiteStats
skins Merge "Hard deprecate soft deprecated skin methods" into REL1_43 2024-11-13 00:27:38 +00:00
sparql
specialpage [REST Sandbox] Remove SwaggerUI from MediaWiki Releases 2025-06-30 16:05:49 +01:00
specials BlockListPagerTest: Fixup tests for pre REL1_44 2025-07-01 11:46:47 +10:00
Status Make Message and MessageValue compatible 2024-10-19 15:00:07 +02:00
Storage
StubObject
templates img_auth: Output lang and dir in HTTP and HTML on error message 2024-10-29 15:18:52 +00:00
tidy SECURITY: Ensure emitted HTML is safe against Unicode NFC normalization 2025-04-10 15:56:06 +01:00
title title: Reset cached Title objects between tests 2025-05-27 12:35:10 +00:00
upload UploadBase: makeWarningsSerializable() should accept MessageParam objects 2025-04-12 22:40:51 +00:00
user SECURITY: fix IP leak to unverified email 2025-06-30 19:58:26 +01:00
utils structure tests: allow PHP 8.1 syntax and autoload enums 2025-06-18 10:55:15 +01:00
watchlist
widget widget: Remove outdated try/catch wrapper from SpinnerWidget 2025-06-14 10:42:05 +00:00
WikiMap
xml
.htaccess In .htaccess deny files, use "Satisfy All" 2025-04-04 13:17:15 +00:00
AutoLoader.php autoload: Expand Autoloader::CORE_NAMESPACES 2025-07-07 16:53:04 +00:00
BootstrapHelperFunctions.php
config-schema.php [REST Sandbox] Remove SwaggerUI from MediaWiki Releases 2025-06-30 16:05:49 +01:00
DefaultSettings.php
Defines.php Prepare 1.43.3 2025-07-01 14:47:09 +01:00
DevelopmentSettings.php
EntryPointEnvironment.php
GlobalFunctions.php Deprecate wfArrayDiff2() 2024-11-04 19:34:41 +00:00
MainConfigNames.php [REST Sandbox] Remove SwaggerUI from MediaWiki Releases 2025-06-30 16:05:49 +01:00
MainConfigSchema.php Show user a human readable message when $wgLocaltimezone is set to an invalid timezone 2025-07-30 13:08:49 +00:00
MediaWiki.php
MediaWikiEntryPoint.php
MediaWikiServices.php Remove CryptHKDF and MWCryptHKDF 2024-11-10 22:49:37 -05:00
PHPVersionCheck.php structure tests: allow PHP 8.1 syntax and autoload enums 2025-06-18 10:55:15 +01:00
ServiceWiring.php Remove CryptHKDF and MWCryptHKDF 2024-11-10 22:49:37 -05:00
Setup.php Setup: Update error message for composer dependencies check 2025-06-13 20:54:40 +00:00
SetupDynamicConfig.php
WebStart.php