Commit graph

128258 commits

Author SHA1 Message Date
Translation updater bot
438cb024a8 Update git submodules
* Update extensions/CiteThisPage from branch 'REL1_43'
  to 6d2bfaec94886c06a83c35b454d3a6933f4dfd03
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I139b40dc92197e78022759965f314c745976d5aa
2025-03-18 06:12:34 +00:00
Translation updater bot
50426e2330 Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to f8e9db88b5cec2f80fa3222aa95379c317b07fc3
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I22c4b9631cb4c9ecde0b019a072be19cb38e0547
2025-03-18 06:12:33 +00:00
Translation updater bot
4d40e99de6 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 9088f9a734935fbfdbc1cd98b77f60b5c7137179
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie0ff28a03e2c4445b0a02fe8af0e4e7ab1d210f4
2025-03-18 06:12:00 +00:00
Translation updater bot
b5cdc575de
Localisation updates from https://translatewiki.net.
Change-Id: Iadf6b960fa78aa92aab16b4ea5835d9160237199
2025-03-18 06:31:56 +01:00
jenkins-bot
6beb3946d5 Merge "MagicWord::replace*: Make sure we don't pass null into preg_match/preg_replace" into REL1_43 2025-03-17 16:44:20 +00:00
jenkins-bot
f6686ed028 Merge "Sanitizer::normalizeSectionNameWhitespace: Apply same anti-null fix as 270499b" into REL1_43 2025-03-17 16:39:48 +00:00
jenkins-bot
c8358470e4 Merge "ImportImages: Exit with non-zero code if import fails" into REL1_43 2025-03-17 16:37:17 +00:00
James D. Forrester
6b0ed71937 Sanitizer::normalizeSectionNameWhitespace: Apply same anti-null fix as 270499b
Follow-up to 270499b6e1f96f402c852843d446a7946589986b.

Bug: T388728
Bug: T385519
Change-Id: Idae7128c09bcf32a6c2d40e02158902c289898b9
(cherry picked from commit e130d34c15e418004a5ae42c0238206d70b2be0f)
2025-03-17 15:57:07 +00:00
Paladox
e3403e20e2 Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
Bug: T388944
Change-Id: Iaba9973aa774f0bac9cf56efc76bc249d4f578ee
(cherry picked from commit e3dd105b209597ccff5eb8a39e79bdc75c1a9b8a)
2025-03-17 15:54:45 +00:00
James D. Forrester
a2bc03b8d8 MagicWord::replace*: Make sure we don't pass null into preg_match/preg_replace
Bug: T388924
Change-Id: I02a3e724dc614f0a2306548f58f71d16a8a1dc5b
(cherry picked from commit 2e4e9428580d4829911313644913c3c74cf43244)
2025-03-17 14:19:01 +00:00
libraryupgrader
fe57b122b5 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 2b70455d8e21e6a30adf3a6092a7e6fed3d1785b
  - build: Updating @babel/helpers to 7.26.10
    
    * https://github.com/advisories/GHSA-968p-4wvh-cqc8
    
    Change-Id: If858909428592f72305f6ec82c078d045ff0e493
2025-03-14 05:28:45 +00:00
libraryupgrader
9a19b57f90 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to 9244357acc06522b224f4000a4c6d291b8e004e5
  - build: Updating npm dependencies
    
    * @babel/helpers: 7.23.9 → 7.26.10
      * https://github.com/advisories/GHSA-968p-4wvh-cqc8
    * @babel/runtime: 7.21.0 → 7.26.10
      * https://github.com/advisories/GHSA-968p-4wvh-cqc8
    
    Change-Id: I67b32a436a3d4f65f608071bb50e7cb39515be6a
2025-03-14 05:28:44 +00:00
libraryupgrader
b81d7f3aa0 Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to a63cd3700c756c1f5b06f66a8aacad1530d44d4e
  - build: Updating @babel/runtime to 7.26.10
    
    * https://github.com/advisories/GHSA-968p-4wvh-cqc8
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I6403218b9e9df1ad4e3c45cb97f83f31a0e2b061
2025-03-14 03:07:06 +00:00
James D. Forrester
91b4f94a66 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to e28a84d4ee25acd2356a75acc1a45aa58e427fac
  - FilterEvaluator::rmspecials: Disable PCRE JIT for this call too
    
    Bug: T385452
    Change-Id: I4060a8d8e7595945e24b20dbe1b7fdbbaafcdd3a
    (cherry picked from commit 48799b2b94269d5dda700b81b0c6747cb4680576)
2025-03-13 21:41:32 +00:00
Reedy
9967167fca BotPasswordTest: Add a few more test cases provideCanonicalizeLoginData
Bug: T388255
Change-Id: I6e1a6fa8e75f519ccbf3c2bb4de7334f620e2a8e
(cherry picked from commit c8427c97981270a7c24e9f00711cc39bda14889e)
2025-03-13 20:58:18 +00:00
James D. Forrester
68329e412d ApiLogin: Don't break BotPasswords if password or user is blank, just error
Bug: T388255
Change-Id: Ibcc20d345cfe7b9410187a74f79f66c8e2326f2f
(cherry picked from commit 953ec56fa2c053fee514468e5710f706ee7c200c)
2025-03-13 18:44:12 +00:00
Máté Szabó
784b9c4dc4 permissions: Avoid potential infinite loop if BlockDisablesLogin = true
Why:

- PermissionManager::getUserPermissions() checks whether the user is
  blocked if $wgBlockDisablesLogin = true, so that it can then limit
  user's permissions to the set of permissions assigned to unregistered
  users if so.
- This causes the GetUserBlock hook to run, which may itself check
  permissions on the user (e.g. in the GlobalBlocking extension),
  causing an infinite loop.
- Since the decision whether the user is blocked isn't yet final by the
  time GetUserBlock runs, any permission checks triggered by
  GetUserBlock handlers should see the user's full set of permissions.

What:

- Stash the user's permissions in PermissionManager's in-memory cache
  before running block checks if BlockDisablesLogin = true.
- Add tests.

Bug: T384197
Change-Id: I3e3804fe518627e9edc2b574cce88f533fd93fe4
(cherry picked from commit 27062b9f8752cc853a65e8a46c9d7d1a9af32c48)
2025-03-13 00:45:18 +00:00
James D. Forrester
372539d51f Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 1b07dc422e911b003a60c8ab22341bdb3d464ac1
  - FilterEvaluator::rmdoubles: Disable PCRE JIT for this call
    
    Bug: T385452
    Change-Id: Ibb0d747459959ef2621e77fa90e5a945123bec9f
    (cherry picked from commit ab02da1ec83aafb8a291746e84d6e6a6a88e6bed)
2025-03-12 21:31:19 +00:00
Gergő Tisza
b4dc368f72 HttpError: Cast Message to string
In theory PHP should use coerce objects with a __toString method
to string when passing them to a method which has a string-typed
argument, but with the native Exception class this doesn't seem
to be working, so cast explicitly.

Bug: T388171
Change-Id: I310b97164877445837babed2a4c47795f1c2c277
(cherry picked from commit a14ef848f758612ac9d4e8c881ecdbbccf3e1158)
2025-03-11 21:58:06 +00:00
jenkins-bot
c614979c07 Merge "Avoid trying to load the session user in MW_NO_SESSION endpoints" into REL1_43 2025-03-11 11:37:51 +00:00
Translation updater bot
f0a9299191 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 9b00e930902b409649c836fd94560867a2ba8f7d
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I5c5928d65464f04b60e704e6a0936ed1f76350ac
2025-03-11 06:27:22 +00:00
Translation updater bot
6b3ffe9294 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to 3f46718b9dc7676fdff7ef016000cba4773278df
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I0bb41bffeaeda54df1d18964823e2ecb99de568a
2025-03-11 06:27:19 +00:00
Translation updater bot
b874d634d3 Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to a33b1d6a45f379b4ddf90e05e0a12c20fdc9eec6
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3a689f4077c12e2d7f3b0dd90c0eede06d750c85
2025-03-11 06:25:18 +00:00
Translation updater bot
f76adb208f Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to 6888fa0afe1ccc324fa004d5df2befe10125727b
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ibc5a55be913fb5e1c80c283464fad7a67579c245
2025-03-11 06:25:13 +00:00
Translation updater bot
3643cc58c4 Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to 6b31118a50245b76a1abec4cba0d64ce30e2a98a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I4ab8b9b1d87f15586e8a704d29e13dbc770defb6
2025-03-11 06:24:44 +00:00
Translation updater bot
94caf71bc0 Update git submodules
* Update extensions/TemplateData from branch 'REL1_43'
  to 6b5f86a814589e541627369de6a679c43761e509
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3b83560f8239743641b31604569275b96995b78a
2025-03-11 06:24:43 +00:00
Translation updater bot
c25ceef511 Update git submodules
* Update extensions/Scribunto from branch 'REL1_43'
  to 8deace10329a9aaabe96728b48869caea17e232a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I127dcd5630bb5b055ecbf800635768ec8eea0ce1
2025-03-11 06:24:36 +00:00
Translation updater bot
b233a7d1af Update git submodules
* Update extensions/ParserFunctions from branch 'REL1_43'
  to 7199d854882d6e63ee9250f1ac8ef79188947465
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I1455caab738edd36886f07ae910a8b4eea7b7d55
2025-03-11 06:24:24 +00:00
Translation updater bot
00a44b81e0 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to c2960e3f78c9d5f2420debb5418e01ac6d00f06e
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie7457c33b865dbc03a199ec1a4a5156893e2093a
2025-03-11 06:24:05 +00:00
Translation updater bot
982b12283a Update git submodules
* Update extensions/MultimediaViewer from branch 'REL1_43'
  to c21ab7d07f6665041c461f120e1e57b8f7ce5f56
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I074741c671495e4e98f4cd212db1f03e086e6fe8
2025-03-11 06:23:56 +00:00
Translation updater bot
4d0294e328 Update git submodules
* Update extensions/Math from branch 'REL1_43'
  to 72a8df832deb95fec4eaace8675b4cc66b42ac3e
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I7c41c6ec10e0d6a81765f30f60532001c5a75d63
2025-03-11 06:23:53 +00:00
Translation updater bot
39da48cfbe Update git submodules
* Update extensions/Linter from branch 'REL1_43'
  to acbc3e38b6174665b03214c8a510351445ec6a3c
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I4b10e27e78ec464de839c58ab94a4e8e3e718328
2025-03-11 06:23:49 +00:00
Translation updater bot
c5969b19db Update git submodules
* Update extensions/Gadgets from branch 'REL1_43'
  to ac63778ed5738eb52e7a9a32a10e81e73a45f8ea
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie477ebd7cd77554bc2eb7258bc08f3561f8f7982
2025-03-11 06:23:25 +00:00
Translation updater bot
f8ee56060d Update git submodules
* Update extensions/Echo from branch 'REL1_43'
  to 02af04c5e8e4c0494a35e8b3598cfa803c1c87e8
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I4b8eefed6e9ce9e36e2673f1d3509ac7b3165791
2025-03-11 06:23:08 +00:00
Translation updater bot
8cf202f912 Update git submodules
* Update extensions/DiscussionTools from branch 'REL1_43'
  to cc4f3db0ef68367721266b0ff46415feb981d521
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ia5fcf3f18fe8e3077f8a5ee721e2413c4dc32596
2025-03-11 06:23:05 +00:00
Translation updater bot
0768523eca Update git submodules
* Update extensions/ConfirmEdit from branch 'REL1_43'
  to 8ccb23bfd3e6d75528a5eb5362b5a1eca517a158
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I6e89915c876b2cf73e547495b1138757a5396f7d
2025-03-11 06:22:55 +00:00
Translation updater bot
56ad8de986 Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to 32517d7f1fdd816fdc5da27c31aba0d75bd0d0a3
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I86b2f6ae884a3f9d1b1229e626068d37f1b271ce
2025-03-11 06:22:42 +00:00
Translation updater bot
6f18efec52 Update git submodules
* Update extensions/CiteThisPage from branch 'REL1_43'
  to 0b1e8bdd657a6ed68ebf60f444fea902e4a986fc
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3c4450c22ea0c62c7aba413984bec5d81e1dff18
2025-03-11 06:22:41 +00:00
Translation updater bot
fc637213b2 Update git submodules
* Update extensions/CategoryTree from branch 'REL1_43'
  to 5689942278637bd675f7dc2828acf2d9d3ff0ac1
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I305fe9ca9adf8eeed30ebb268eecda9987e7ed23
2025-03-11 06:22:41 +00:00
Translation updater bot
5771582116 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to bb76bcfc7ecc50970ce8055f219ac532b57a3ca5
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I9ee433a23904a265d832a605657431635ac875b8
2025-03-11 06:22:11 +00:00
Translation updater bot
052664c1f0
Localisation updates from https://translatewiki.net.
Change-Id: I7db45053212cc3abc595a82f9136090d09dfceab
2025-03-11 06:32:45 +01:00
Gergő Tisza
dda169ea69 Avoid trying to load the session user in MW_NO_SESSION endpoints
Trying to load the session user in an MW_NO_SESSION resulted in
an exception thrown from SessionManager::getSessionFromInfo(),
but User::$mLoadedItems has been set by that point, so if
something catches the exception, future attempts to access that
user object would result in unexpected behavior.

Bug: T388066
Change-Id: Ia3f6d0a96209471db3ce1baf6870a57e1cf1b6b2
(cherry picked from commit a32247211585123565498d2a1e4e54bed6ade6fb)
2025-03-11 00:28:38 +00:00
Reedy
5439508732 Update git submodules
* Update extensions/ImageMap from branch 'REL1_43'
  to 1aa7ea696c546c716a9e6168bfd0edfa73c7ff29
  - ImageMap: Bail out if $input is null
    
    Bug: T388464
    Change-Id: Ib1706268be419b59d95639cd6dfd412603e19163
    (cherry picked from commit dd0a2234bde087e05d89575330c6d31be30d7320)
2025-03-10 22:38:03 +00:00
Reedy
d4c73628d9 Update git submodules
* Update extensions/InputBox from branch 'REL1_43'
  to a8184c4572811cf9df340702e882fe95baa885a0
  - InputBoxHooks: Bail out if $input is null
    
    Bug: T388464
    Change-Id: I5f109c16a35b69c8a5181c452e09205a71fe7c9c
    (cherry picked from commit 54135ce194a89043a95d5157aaba876daddcf87a)
2025-03-10 22:06:25 +00:00
jenkins-bot
d5837014b9 Merge "Request: Improve log message when headers already sent" into REL1_43 2025-03-10 19:31:32 +00:00
daniel
548d5eb8de REST page metadata endpoints: handle supressed data gracefully
Why:
- Revision meta-data output was failingfor revisions with suppressed
  user or comment

What:
- Handle suppressed user and comment gracefully
- add regression test

Bug: T386368
Bug: T387397
Change-Id: Ic6d3fc89d24030f5c3fd422637816de9976fc709
(cherry picked from commit 8c53a15ba0fae2677aa8e28055f06ef557595be6)
2025-03-10 17:18:37 +00:00
Umherirrender
420142db5d Request: Improve log message when headers already sent
Use php build-in support via headers_sent() to get the
relevant file and line for the log message.
Keep the exception for more details.

Change-Id: Ief301710efc19df9b5eaa6d94f138570e3be6290
(cherry picked from commit 8e4a0638bd92620ff216cf8bdd21e3da003130b3)
2025-03-10 15:12:31 +00:00
Ed Sanders
1a623d1487 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to b04c6ac7bcc894644287cb81f67245ad460d3ab6
  - Fix logic for when to show the notification circle
    
    This functionality was seemingly broken in I55c18cf72.
    
    The comments in the code declare that the notification circle
    should show when there are unseen "notifications" (where a
    "notification" is either an "alert" on a "notice), and this
    matches user expectations. However the logic as implemented
    means we only see the circle when there are unseen "alerts".
    
    Bug: T344029
    Change-Id: I91cd5e7703760323c4a6786e8c7a7a00b21e8de2
    (cherry picked from commit acb5cb08bfc43e7f43717dba35399fe5233c90d0)
2025-03-09 22:07:04 +00:00
Ed Sanders
594f2cbd5e Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to 7d8fbb8d8246fd91d38e293b34de2bd57e74f746
  - Notifications: Rename variables
    
    Makes it clear the new object being created is the combined
    notification represent alerts and notices, instead of
    re-using $alert.
    
    Change-Id: I77a1ac19f92bd6e6644ff2630d5b9f3feb40dddd
    (cherry picked from commit 2a3ddba2d911b386cdde63a682c767730edd2b75)
2025-03-09 22:07:02 +00:00
Ed Sanders
23525998f8 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to bb79c4d77333f0bd6885bceb072b2824c4f91b00
  - Notifications: Remove unused code
    
    Change-Id: I1f1287c99a27e7a4e61a3f2a0cd150701d528a13
    (cherry picked from commit d619f6004e32a1f4f8ea3431b9eb6a9cdc4b476d)
2025-03-09 22:06:44 +00:00