Commit graph

128380 commits

Author SHA1 Message Date
jenkins-bot
10aee37b9e Merge "ExternalLinks: fix mailto: links reversal" into REL1_43 2025-03-03 08:30:03 +00:00
daniel
d0bbe78b23 RateLimiter: Fix peek mode
Why:
- Setting the increment to 0 should check the limit without bumping it.
- This was apparently broken by If3e66491306f22650.

What:
- Use LimitBatch::peek if the increment amount is 0

Bug: T381033
Change-Id: Ife76a1976a2063f051f00302e5adaebd701e6367
(cherry picked from commit e09606b3dc44711571cc6cf2d0d11bd7784d0cdd)
2025-03-01 15:51:16 +00:00
Ammarpad
c373e0ba40 ExternalLinks: fix mailto: links reversal
If $mailparts does not contain two elements (which would be the case when the separator `@` is not present in the string), then we cannot
access $mailparts[1].

In this case, the entire path as is, is treated as the host.

Bug: T380880
Change-Id: I10187c93e67ce9294ff0b3866939d2c7d7292a9a
(cherry picked from commit c2db58c55bef207dd37ac5fe0b07aa28ee4bd2d5)
2025-02-28 16:33:54 +00:00
Derk-Jan Hartman
05cce96a77 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to 924a39adec68ae3af6b8c536723648ca5527fd39
  - Fix translations for recovery code notifications
    
    The notification body was listed with the incorrect key name.
    The notification header was missing completely.
    
    This is a follow up to Ic4294dc4ca8eb238998af3ec6b69a771f1b17c17
    
    Bug: T383265
    Change-Id: I14599a4a1bd4bd452727aa9f81566af4d3ad7cfa
    (cherry picked from commit e77fd953ff89b86dbefa22734386b6af59fcd077)
2025-02-27 00:50:45 +00:00
Translation updater bot
3202e817d1 Update git submodules
* Update skins/Timeless from branch 'REL1_43'
  to 2a795e3d690fb97fa1ff3fa8522b63d9f55b6a5b
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I822e12e36ac6f9be5b87d8e4217416e8c10939ed
2025-02-25 06:31:14 +00:00
Translation updater bot
1ac231f08f Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 210e513841da380e13bb539e55a70095d4163dad
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3a8b78eb7207b6ac1b0129ac40bdba98f35d6358
2025-02-25 06:31:12 +00:00
Translation updater bot
034d93694a Update git submodules
* Update skins/MonoBook from branch 'REL1_43'
  to 4f2266626b36bb7556e54b87814b0016bd1adf2b
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I6914a39c229e3375a4174c51f02641e464dec1dc
2025-02-25 06:31:11 +00:00
Translation updater bot
5757defe95 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to a764a4b30bbd486142d829dfa242daf8806c71ad
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I142d58fb65784930ee5ab88baf10816e88fc93ea
2025-02-25 06:31:05 +00:00
Translation updater bot
307d3ca88d Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to 15b1e270dacb67b81938d726b0334ab9cace9800
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I6ad7345e1d696379e461aea5dfae290e62cbf9b3
2025-02-25 06:29:01 +00:00
Translation updater bot
76302f46e7 Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to efed4932d7ad484af6798d1704f84eff2933b1a2
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: If8d2745d3377f16b0c20da0cb5cf441b55a80a3c
2025-02-25 06:28:52 +00:00
Translation updater bot
ae5e36b2bc Update git submodules
* Update extensions/Thanks from branch 'REL1_43'
  to a619821e2d530c9c10666b3842e44dd3d61c61fb
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I56462343a87aa151ac348cbdd429021174b235eb
2025-02-25 06:28:31 +00:00
Translation updater bot
3a8b1836d3 Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to bfa8838ff6d84ffb79be1e97f5faefc740c43c32
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I40455de57cff4f1bb13ef5570ee9ff91e9276839
2025-02-25 06:28:24 +00:00
Translation updater bot
c61db2a760 Update git submodules
* Update extensions/TemplateData from branch 'REL1_43'
  to a5e5dab30404b841afef018fed5edfb54db002f6
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I861034dc841948c377afa069db0d491bdf7932f3
2025-02-25 06:28:23 +00:00
Translation updater bot
ba00059a4b Update git submodules
* Update extensions/SpamBlacklist from branch 'REL1_43'
  to 46795dda66216ab8e7805564ac6f8e09900068a4
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I59b09517c7373b7f7b97119d06145834c8398181
2025-02-25 06:28:18 +00:00
Translation updater bot
2fd9a6969a Update git submodules
* Update extensions/ReplaceText from branch 'REL1_43'
  to 33406c20233af3e2ce4d0205364839dbad954546
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ib2b91934dd1d32be3d86cbbaf17ebab5ddabea5b
2025-02-25 06:28:06 +00:00
Translation updater bot
f58343f1cf Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to 21da913c2beb14da4440266ef6e57640a6287f03
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I477e79d954873b96afeff05339b3ed59e47b397a
2025-02-25 06:27:43 +00:00
Translation updater bot
be2afdeb07 Update git submodules
* Update extensions/Nuke from branch 'REL1_43'
  to db624a8db77c93e4f7fb5a3e9d984246806d2c51
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I7d27cfe52c0b51ed7d876b750412109e490feb82
2025-02-25 06:27:42 +00:00
Translation updater bot
1e9da46d30 Update git submodules
* Update extensions/MultimediaViewer from branch 'REL1_43'
  to cb7554f5dafa8f379020f30bd9232a5f8599a1de
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ib06c73a9e9958b4bf7c77e5127112b9c908679b9
2025-02-25 06:27:42 +00:00
Translation updater bot
2807ba993a Update git submodules
* Update extensions/Math from branch 'REL1_43'
  to 878c2adacf41f08a22e893f353f707e3e320fa2e
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ic11e47dbdcbc555f5abf193259831e1b5c0826d7
2025-02-25 06:27:36 +00:00
Translation updater bot
23cf0742f4 Update git submodules
* Update extensions/Linter from branch 'REL1_43'
  to 1520a069b47c6effa51904b32542ff2389e8c3f8
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I024fcc55007864c202b775f07965a4963df1fc41
2025-02-25 06:27:32 +00:00
Translation updater bot
79df168a1b Update git submodules
* Update extensions/InputBox from branch 'REL1_43'
  to 9903156d6d8fce26cb9e0f1fd016cd25b40e5356
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I10b3794530bda189aafb2f1d4de4b929649e7571
2025-02-25 06:27:31 +00:00
Translation updater bot
939a8f000c Update git submodules
* Update extensions/Gadgets from branch 'REL1_43'
  to b19d615db45f63cf1a1cbd83cb33b69144edb7e2
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ibe55567e070ee4a3b35a71543912fbb7c4397f56
2025-02-25 06:27:13 +00:00
Translation updater bot
b7ec66bdee Update git submodules
* Update extensions/Echo from branch 'REL1_43'
  to 1f01255482616f9fc481f6e821a3afb5e342b37a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I337776bfbca0f9fdd0799df4e4f918baa08a8731
2025-02-25 06:27:02 +00:00
Translation updater bot
09284a352c Update git submodules
* Update extensions/DiscussionTools from branch 'REL1_43'
  to 4d28bbdd810b6e3cc0f29cd40dfbc066c65372ec
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie7abfce6b63c97dfdebf05758a05d3db28806afa
2025-02-25 06:26:58 +00:00
Translation updater bot
4b3096bb88 Update git submodules
* Update extensions/ConfirmEdit from branch 'REL1_43'
  to 5f39b1179e2eb318d46ee0e3d8beb5e9c11a3f03
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I660a0b5c67977a5dfa917683607698cf3f43bbe1
2025-02-25 06:26:48 +00:00
Translation updater bot
602e0b61fc Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to bb63f3e881c0a399cadb1c42998f1c73ee3e31dc
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I87af050a06dff747f938ab9b9e7d389cf701159b
2025-02-25 06:26:37 +00:00
Translation updater bot
45897cfb76 Update git submodules
* Update extensions/CategoryTree from branch 'REL1_43'
  to 7a4d4216c845227cbe388bdec0f28ef6fa81e4fb
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I4f2479c11e33dcc72a6c45c66ed03a8ffc1e9fb9
2025-02-25 06:26:31 +00:00
Translation updater bot
dd76bb72d3 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 7523fb8997d07d7a80989e0299e8d304ec4971b6
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I0eeb3ccd51d34bdcd0529afb6133e45647084ba5
2025-02-25 06:26:13 +00:00
Translation updater bot
3f040e33bd
Localisation updates from https://translatewiki.net.
Change-Id: If360ec9295a3fd250b27dec146e81f205e0c6e54
2025-02-25 06:32:49 +01:00
jenkins-bot
1ed2ccd790 Merge "Add explanation text for "Allow emails from brand-new users"" into REL1_43 2025-02-21 22:50:25 +00:00
Nemoralis
4d4359f8ef Add explanation text for "Allow emails from brand-new users"
It is not clear who the "brand-new users" are in this case so help-message is required here.

Bug: T381205
Change-Id: Idfc1b7e4b5b1686f0edf69b32e0d4152b30e54ae
(cherry picked from commit 141be6c7f7a3be92d702db1e26ba7d0493aa8a0f)
2025-02-21 22:34:44 +00:00
Bartosz Dziewoński
3f2281da04 phpunit: Fix bootstrap script when no extensions are installed
Change-Id: I9de2c7711fc41f83a0b9e6783fcf085cedb2a9c9
(cherry picked from commit 2544c2cd31fefece71adc0ec03112614e41bd9ec)
2025-02-21 22:24:30 +00:00
Reedy
1364192bb9 FeedItem: Update @since on xmlEncodeNullable for backports
Bug: T385332
Change-Id: I88f82fb5a703126f0ce586030d7ba7666fbb5a18
Follows-Up: Iafd89c0d61baecd7c68f62b2a0764cc78cf25069
(cherry picked from commit 30f076a54660304590c266b7edee949ccc35c237)
2025-02-21 03:53:56 +00:00
Umherirrender
87238af0a0 Revert "maintenance: Use DatabaseSqlite for type-hinting instead of DBConnRef"
This reverts commit 4563e41f20.

Reason for revert: The expected DatabaseSqlite is not directly used here, it is still DBConnRef and the patch does not work as is.

Bug: T386891
Change-Id: I83b1e299b698c004dcacb9aa90901dfe28097403
(cherry picked from commit 7fdc51ed4d27ba6211215c6198b7e448de799cde)
2025-02-20 20:35:40 +00:00
Translation updater bot
e11560ed7c Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to b0e1c7ef4c6046dda811dd942ada47ec80b157ee
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I714b0abbdd095e8cfab29e53ea98f24a0971cdd9
2025-02-19 07:36:36 +00:00
Translation updater bot
ee8b915623 Update git submodules
* Update extensions/CategoryTree from branch 'REL1_43'
  to a6e27fdbe6a4f63ea17521e6dc320a4e129f5758
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie354b6c26a58a8ad4bf066c8eaac925e22fd0d35
2025-02-19 07:35:52 +00:00
Tacsipacsi
1f73b5d5e4 feeds: Fix str_replace() deprecation warnings on PHP 8
Why:

Both AtomFeed::formatTime() and RSSFeed::formatTime() short-circuit with
null if the input is falsy. This caused deprecation warnings down the
line, as the return value was later fed into str_replace(), which raises
a deprecation warning on PHP 8 if it gets null.

It also caused unexpected output on all PHP versions: the Mustache
templates for both Atom and RSS conditionally emit the date elements
(<updated> in Atom, <pubDate> in RSS), but this conditional output is
skipped only if the variable is null, not when it’s an empty string –
which is exactly what the XML encoding returned on all PHP versions.

What:

Introduce a new method, xmlEncodeNullable(), which properly handles null
values, and returns them as-is, without trying to encode them. This:

- Avoids the deprecation warnings on PHP 8, since str_replace() is no
  longer called.
- Makes the conditional output work: the <updated>/<pubDate> elements
  are no longer output if no date is available.
  - This makes the RSS output spec-compliant, as no garbage is output
    anymore. The RSS <pubDate> is optional [1].
  - It doesn’t make the Atom output entirely spec-compliant, as Atom
    requires <updated> to be present [2], but the removal of garbage
    (it was a single letter Z) should still increase compatibility.

[1] https://www.rssboard.org/rss-specification#hrelementsOfLtitemgt
[2] https://validator.w3.org/feed/docs/atom.html#requiredEntryElements

Bug: T385332
Change-Id: Iafd89c0d61baecd7c68f62b2a0764cc78cf25069
(cherry picked from commit 60c57b0fd5303e9627b7684ebac4cd369c1fe7a6)
2025-02-18 21:44:56 +00:00
Translation updater bot
f43da897e5 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to ba850e2ca6b8e5256553b6c336d50efeac4da140
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iebb600ad71e9fb58847cabe0229268f3ad6c3787
2025-02-18 06:28:13 +00:00
Translation updater bot
66814e0800 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 34e36ecb91b98064288a911c400fa03f59e07144
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I5916802af950a3c07fb492670fce298bb920eb89
2025-02-18 06:28:12 +00:00
Translation updater bot
936064426b Update git submodules
* Update skins/MonoBook from branch 'REL1_43'
  to d1800222e664e8ac5636225ef68c82f9e2fd9b95
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I98ea489b8a836dd4c74ebcd6c929fa1a83edfbfe
2025-02-18 06:28:10 +00:00
Translation updater bot
8d94351471 Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to cf6665c16b3f8db755a335d5fc0c0be035e8243f
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ia446e43ed3da3c737390f08ff2ab3fcf4e3b9f13
2025-02-18 06:26:57 +00:00
Translation updater bot
3b864bb70b Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to 3537984d0a86a18db3c079ddcac4b94f28e41e09
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I66e8a4b0c4003bad7a1adc8743752759c0259a8b
2025-02-18 06:26:53 +00:00
Translation updater bot
94d88807c2 Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to 56bdce6a2e3ddc61db604f57c47006af43874cc8
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ic6f0e67d03a63f154249cfc9ce962e1f3e9f98dd
2025-02-18 06:26:33 +00:00
Translation updater bot
52eaa49c42 Update git submodules
* Update extensions/TemplateData from branch 'REL1_43'
  to 5d9ccbdfd292ed7501aa76e63876308f50ff65c5
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I390d5db1509d1ecad07219e092631c7e8dc6fca7
2025-02-18 06:26:32 +00:00
Translation updater bot
67ead8fee2 Update git submodules
* Update extensions/Scribunto from branch 'REL1_43'
  to 3c4e4b51ef4a356b6ad1456cf352f58af90d8c59
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I346eb35a09357f54a7517d42628999bc2ace9c94
2025-02-18 06:26:26 +00:00
Translation updater bot
e1600400ca Update git submodules
* Update extensions/MultimediaViewer from branch 'REL1_43'
  to ec6e2f772dacab881cb9be31a43f9db525104246
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I126e1b15f62c0c02c65c3b7e4517cda2df595bdf
2025-02-18 06:26:03 +00:00
Translation updater bot
75f5fb0aa8 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to 8a7c4a6d096cdacc47d10cd18e3f33717790a2bd
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I32f96503228213f67402bd06613499cad7a1a01a
2025-02-18 06:26:03 +00:00
Translation updater bot
8d372e3200 Update git submodules
* Update extensions/Nuke from branch 'REL1_43'
  to 382591dc50ce85c813fd5b52ccee9a9cb9c67942
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I362e6de55b6be3e0beed707b262447c5cceba172
2025-02-18 06:26:02 +00:00
Translation updater bot
a0f1f8a396 Update git submodules
* Update extensions/Math from branch 'REL1_43'
  to 8bb9ee4926a568a05263e8c7c82277537f6f32ce
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Id10ef1b1a634b439e978db1ac7033c13aafb83b8
2025-02-18 06:25:59 +00:00
Translation updater bot
dcd5b58aad Update git submodules
* Update extensions/InputBox from branch 'REL1_43'
  to 807e888687529a246f4f46980e47e144b73c6f8a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ib4178995794ddc80dedadd98d3972eefcf80062b
2025-02-18 06:25:54 +00:00