* Update extensions/ParserFunctions from branch 'REL1_43'
to 84e4ff9b7f1a4c9cf457c6956d13663411bdda56
- Localisation updates from https://translatewiki.net.
Change-Id: I3e9759892e71be9eadedd52ef153c03070c167e6
* Update extensions/Nuke from branch 'REL1_43'
to e4e217058426c71cf07e01f0ee1cc8442fbfe4ec
- Localisation updates from https://translatewiki.net.
Change-Id: I7eeb12e519244f197902c4b5f8e67cdec468c838
* Update extensions/Linter from branch 'REL1_43'
to 0748f3d82008b0848c327395fe871fdeaf70264c
- Localisation updates from https://translatewiki.net.
Change-Id: Id93e6b842a5680e1a605df6d5e5b256eec962603
* Update extensions/LoginNotify from branch 'REL1_43'
to afe5d60a3bdd3642b4b8d47f8c341b7a5042c5e9
- Localisation updates from https://translatewiki.net.
Change-Id: Ic16b2c24a92f1cbb7de68f45a0aeaba1006d0191
* Update extensions/ImageMap from branch 'REL1_43'
to 034a89c710696b04f509e9c4b2ae9fc291986e9f
- Localisation updates from https://translatewiki.net.
Change-Id: I974a889c39c067c45e343d56f3bc837037a151fe
* Update extensions/Gadgets from branch 'REL1_43'
to d215343d742c354cf9f01f0838ae7e8448b7c041
- Localisation updates from https://translatewiki.net.
Change-Id: I318b1b1db07805064563c81ad12b8cf531968c70
* Update extensions/Echo from branch 'REL1_43'
to ef46451b9be6af9e7a2411d044fe43aebed80564
- Localisation updates from https://translatewiki.net.
Change-Id: I078c5e0d15d501599e98132d0bf3804025a21569
* Update extensions/DiscussionTools from branch 'REL1_43'
to 0375aeaa06a84d83b2ed4b30dbc0c8d359ece4df
- Localisation updates from https://translatewiki.net.
Change-Id: Iab3bb8de5dcc4cc8775a68646528e4222e409c89
* Update extensions/ConfirmEdit from branch 'REL1_43'
to 1ef1d3917d7c8cc8a1b5ff25bcbdf63f12d2a3eb
- Localisation updates from https://translatewiki.net.
Change-Id: I2a99c152adb896ebc33a8bcf6b1b4480cdf6f969
* Update extensions/Cite from branch 'REL1_43'
to 8747d08faeed5adc5d28a5a1df6bbec071ba97d5
- Localisation updates from https://translatewiki.net.
Change-Id: Ifebfba06422119abd9324403b449c5088bf92898
* Update extensions/CategoryTree from branch 'REL1_43'
to 9f0287bf0eeb04bab2be3737c0dcd52c0fc57c72
- Localisation updates from https://translatewiki.net.
Change-Id: Ia9a2d0232a2d8859abd6a8781282f9ff43af8291
* Update extensions/AbuseFilter from branch 'REL1_43'
to 6f1895690a192c5b96acaed9f427c6a25c76ec11
- Localisation updates from https://translatewiki.net.
Change-Id: Ie5b55129fc1f145c1576c0670138e81721fa4f4f
- Handle GPS tags with decimal rational number instead of array of dms
rationals
- Mod the decimal values
- Increase validation on GPS tag format
Bug: T386208
Change-Id: Ief823af317bbb01b4a05e34b1d189ce1deaa1f33
(cherry picked from commit 55ffc43a596c0547986322ffe679d37daa921be7)
Use coalesce operator to check if the array key exists
Change-Id: Icf24e208a487bafe3d1983536870aac19cfc4b5e
(cherry picked from commit f0ad539b4e613216639b04386f56d6bb1b656d14)
In a future patch (Ia690f10ccbf4f60f9febca98915155c2df58f0d4) we will
use native JsonCodec serialization of the TOCData object. But first
we will add forward-compatibility code to deserialize TOCData, so that
if we need to rollback the future release we won't break the parser
cache.
New serialization test cases added, as per
https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility
Bug: T327439
Change-Id: I4652b2709afd33ff5e469e36960391e993bc7bae
(cherry picked from commit bf61f6bc0eaf5013167e4b80860b0a610559c661)
Something changed in WMF CI config that causes this warning to be
emitted, perhaps T397429#11035011.
Change-Id: Ib477c1812c48a96b252a4f687e09f1ca5c30c2f3
(cherry picked from commit 4b5fc06c5e34b0a9332c9228ac3c28fd0f750c6c)
* Update extensions/AbuseFilter from branch 'REL1_43'
to 23e5a2a8caba8bcd975e2f1ae0f40f18c389c718
- Provide default for missing request values on Special:AbuseFilter/new
Missing request value can only happen when the form is submitted in an
non-normal way; we should ensure it does not log warnings in that case.
Bug: T396591
Change-Id: I101d5d8ed1bca134a6d1cd4da6ca4768374f484c
(cherry picked from commit b9e34ed31a5a221a5dd758b95eac3c857228747c)
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
to d8afdf64f373ada44c832a143169158d9ad691b3
- Update pygments/AUTHORS file
In create_pygmentize_bundle script, fetch the AUTHORS file from the
GitHub repo and update our local copy.
Change-Id: Ifbb84fcfb956fa2e3f4312e7b3b059c474322f82
(cherry picked from commit 696f5ef27a360017ead545a994b63f300f5ce021)
* Update extensions/AbuseFilter from branch 'REL1_43'
to bc7e84a07c991ebd9251fb7d0cfb5829af50cbaf
- SECURITY: Check protected variable access in CheckMatch API
Why:
* The AbuseFilter 'abusefiltercheckmatch' API allows users to
check if abuse_filter_log rows or recentchange rows match against
a provided pattern.
* This currently does not check if the pattern attempts to match
against protected variables that may be present in the variables
generated for either the RecentChange or abuse_filter_log row.
** This allows users to trial-and-error work out the value of
protected variables when they do not have access to the
variables.
* This should not be possible and proper access restrictions for
protected variables should be applied.
** This includes logging when a caller is matching against
protected variable values to avoid trial-and-error matching
allowing an authorised user to see the value without creating
a log entry.
What:
* Update CheckMatch::execute to:
** Reject attempts to match using a pattern that contains
protected variables that the user cannot see the value of.
** Reject attempts to match against abuse_filter_log rows that have
protected variable values that the user cannot see to be
consistent with Special:AbuseLog access restrictions.
** Log when the provided pattern uses protected variables that
have a value in the variable dump.
* Add tests to verify this fix works.
Bug: T397196
Change-Id: I5f02572b94760141f6f57873409469318f441e18
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
to ccf8bf6ef56c8acc5beed3a55f463acd3f16eeb0
- Update Pygments to 2.19.2
Bump embedded Pygments version from 2.18.0 to 2.19.2. Changes
<https://github.com/pygments/pygments/compare/2.18.0...2.19.2>.
New lexers: codeql, debian.sources, gleam, googlesql, hare, json5,
maple, numba_ir, numbair, pddl, pyi, ql, rego, tablegen, td, tsx, vue,
zetasql.
Includes upstream contributions from Taavi and Diskdance.
Bug: T383018
Change-Id: I2430784ee62b348f902bdeeb55b04536a963ad98
(cherry picked from commit 936d4b68cd563b79fce27b65780ae20f36ea7ecf)
Add a new test case for the "empty ToC" case, to complement the
existing serialization test cases for "missing ToC" and "non-empty
ToC".
Change-Id: I8e2ff94f871546232cbf099f98bfcce559de76f2
(cherry picked from commit cb2173c57276142adc466f7494016e2faf15b758)
* Update skins/Vector from branch 'REL1_43'
to 5f0b824950827049a4fef1b30300fb47f0146547
- Localisation updates from https://translatewiki.net.
Change-Id: I8857751edb1f26a8fa4d8efc416a3b301ead1b16
* Update skins/MinervaNeue from branch 'REL1_43'
to 15be00877bcaa6454fef62f41cec84075f92e14b
- Localisation updates from https://translatewiki.net.
Change-Id: I7082bde397bc470df6851db797a2e18d9c2d4c66
* Update skins/MonoBook from branch 'REL1_43'
to d1e391f5d5bca71a347074587e3b2bffe43109b3
- Localisation updates from https://translatewiki.net.
Change-Id: I373c99025e8ff707f47a47cec325f5d945de88a4
* Update extensions/VisualEditor from branch 'REL1_43'
to bf5a93f1d42f6bf6dd644819bcb7138e8c26c147
- Localisation updates from https://translatewiki.net.
Change-Id: I95a318a1e35e29a56b677adcb9d1eb4525856a37
* Update extensions/WikiEditor from branch 'REL1_43'
to 14128bb4148e03f1b15c8d8a2345d4344f155b9a
- Localisation updates from https://translatewiki.net.
Change-Id: I95a318a1e35e29a56b677adcb9d1eb4525856a37
* Update extensions/Thanks from branch 'REL1_43'
to 75ea5628f951044bfe25d9985abdec59f035d1f3
- Localisation updates from https://translatewiki.net.
Change-Id: I6549effe94b0132baa9bce2bd1717a3de18ef0d8
* Update extensions/TextExtracts from branch 'REL1_43'
to d883c3ee1b4559d135e81c9c3b063692f9d54b35
- Localisation updates from https://translatewiki.net.
Change-Id: I888942b85883774788329e089bded87fe405b7d6
* Update extensions/TemplateData from branch 'REL1_43'
to b966fe7c94c580a5f03df1f386962551653f333e
- Localisation updates from https://translatewiki.net.
Change-Id: I4db9f8c43a3dfec526425b746b88f7a768d154dc
* Update extensions/OATHAuth from branch 'REL1_43'
to 41afa24a708a23b01c92dcaddb6ff4e5e0734062
- Localisation updates from https://translatewiki.net.
Change-Id: I9e607b12c7696c58a63ba53bb434a6c9b30749bb
* Update extensions/Linter from branch 'REL1_43'
to ec0d3eee06f2dee4bf9d3acf8d8a57f9e30926ce
- Localisation updates from https://translatewiki.net.
Change-Id: I6e864130c46bc0b040b4c347631550382d81c6a0
* Update extensions/LoginNotify from branch 'REL1_43'
to d2eef1af8ccebaed70c9380bd5bb0ae887497c92
- Localisation updates from https://translatewiki.net.
Change-Id: If3f0d03440be1dca39e98173d93ee45538ab6d28
* Update extensions/Gadgets from branch 'REL1_43'
to db0822f698daa2f3370c4ee584a3857ccefec678
- Localisation updates from https://translatewiki.net.
Change-Id: Idb6554b06c196cea7d2e29e920cde5e56a503f34
* Update extensions/Echo from branch 'REL1_43'
to e4bbcabf722acf7b95cee86aca1bb77f7c651e54
- Localisation updates from https://translatewiki.net.
Change-Id: I1e0d9407994a08a952afd86234b2d68499c6eb2f
* Update extensions/DiscussionTools from branch 'REL1_43'
to aa8bda4e5f7432d97a2c2766b57b387d4bba99f6
- Localisation updates from https://translatewiki.net.
Change-Id: I8b3946392f992910391ca66cf429ce9aa413d833
* Update extensions/ConfirmEdit from branch 'REL1_43'
to 7b18b336e31b7b72a12887bc2418550499459d26
- Localisation updates from https://translatewiki.net.
Change-Id: Ia2c07fd85d782412c500a76e0f7b2a9155742bbe
* Update extensions/Cite from branch 'REL1_43'
to 52ddd6e6bd0181f0eebc7a73bbcb8726f98324ca
- Localisation updates from https://translatewiki.net.
Change-Id: Ibcb4dd7be14c6e910b181f3d831acfaf8baffc9b
* Update extensions/CodeEditor from branch 'REL1_43'
to 13378812a800b628bc3cc278f385d866986d4476
- Localisation updates from https://translatewiki.net.
Change-Id: I7606641b703abfbe25967e4be0fe957bbe078a4f
* Update extensions/CategoryTree from branch 'REL1_43'
to 78617a33c0598367cc7d83865c458f5f1b7bcb21
- Localisation updates from https://translatewiki.net.
Change-Id: I1b1f1cdf9cdb59c13fe613d2cbe524232e5c4360
* Update extensions/AbuseFilter from branch 'REL1_43'
to a8dbd6b44e929cd52d738de6623251f140c814fb
- Localisation updates from https://translatewiki.net.
Change-Id: I46bf92a193c9e534ed54e76f6d82f2b31a419d64
WHAT:
- Return the GTID style from `MySQLPrimaryPos::parseGTID`, which already identifies the style during parse.
- Rely on `parseGTID`'s detection in `MySQLPrimaryPos::init`.
WHY:
- When GTID-based replication is enabled and MySQL is used for the database, MediaWiki misidentifies the engine as MariaDB.
- This causes position waits to fail with "No active GTIDs in $1 share a domain with those in $1".
- This is a regression caused by I232274feb12c0ce4826be2c46a35315b425f6673:
- Before that change, parseGTID returned the domain ID as an integer for MariaDB and as a string for MySQL.
- The `init` method used this fact (`is_int`) when determining the GTID style.
- After the change, parseGTID always returns the domain ID as a string.
- The check in `init` was incorrectly updated to expect a string for MariaDB, but did not account for MySQL's source ID also being a string.
Change-Id: I4951e7967a45bae10d26b06ee236a55279fa8fb9
(cherry picked from commit 54154c87c084543fd659f24ae6b4c276184259cc)
This regression was introduced in I6670a58fe1.
Bug: T399793
Co-Authored-By: Jonathan Lee <cookmeplox@weirdgloop.org>
Change-Id: I26b61e2a08b51aaca5d2740dcaf20b509be380eb
(cherry picked from commit fa05279424e0688a7b34f1186050dca1e2ec5f4b)
We were getting PREG_BACKTRACK_LIMIT_ERROR in production from certain
inputs to Parser::extractBody(). Use possessive matchers and a
once-only subpattern to ensure that we don't backtrack unnecessarily
once a <body> tag is found.
Bug: T399064
Follows-Up: I59abad3a58ccd6edc6517b13a56d8253ba0e0928
Change-Id: If6860ca268236cf428d574f6bb21c2070f5aa6a3
(cherry picked from commit 2c56237235a5603a1757982f02d3e542bdafaf06)