Commit graph

7236 commits

Author SHA1 Message Date
Ed Sanders 3d23de9893 build: Update linters
Change-Id: Ieb7a2999a7f75697cc866ff29ec9707bdc9618db
2023-11-08 14:05:03 +00:00
Translation updater bot 0430a5b97e Localisation updates from https://translatewiki.net.
Change-Id: Ie8379aa6f17fbe70b7e13be0169b2d68284db2a3
2023-11-08 13:07:01 +01:00
Translation updater bot 3958956bcc Localisation updates from https://translatewiki.net.
Change-Id: Ic3f8c108fe1dce0d6bb9e8bd06ea69d4052453b0
2023-11-07 09:07:03 +01:00
Translation updater bot 130cb3dc74 Localisation updates from https://translatewiki.net.
Change-Id: I952ded8a6335275b330308594256685834efa845
2023-11-06 08:54:53 +01:00
Translation updater bot 56bef976cf Localisation updates from https://translatewiki.net.
Change-Id: I41ae6e1fe50e5adeae0d23bbe2b3577cad5db3b6
2023-11-03 08:58:02 +01:00
Translation updater bot b4118ba4cb Localisation updates from https://translatewiki.net.
Change-Id: I93767cc55021e015d117f35c86adf797bc5e9b8f
2023-11-02 09:57:32 +01:00
Translation updater bot 7a066dfe9a Localisation updates from https://translatewiki.net.
Change-Id: If9757c40184154600f5085d4c39469a37eb10971
2023-11-01 09:07:09 +01:00
MusikAnimal 7db0e05aeb Show notification when editor links to a blocked domain
This leverages the new BlockedExternalDomains system that is now part of
AbuseFilter. It notifies editors in realtime if a link they add is
blocked. See https://w.wiki/7ZsF for more information.

BlockedExternalDomains is slated to have its own API tantamount to the
action=spamblacklist endpoint, after which case this code will need to be
updated. In the meantime, it's meant to serve as a minimal viable product
for the CWS 2023 wish <https://w.wiki/7ZsE> for wikitext users.

The new $wgAbuseFilterBlockedExternalDomainsNotification configuration
setting controls the availability of this feature.

A similar feature for VisaulEditor is tracked at T276857

Bug: T347435
Change-Id: I7eae55f12da9ee58be5786bfc153e549b09598e7
2023-10-31 15:32:02 +00:00
Translation updater bot 968359fe75 Localisation updates from https://translatewiki.net.
Change-Id: Ib5da08461645581e6c14750820affbafb5e02b80
2023-10-30 17:58:29 +01:00
Translation updater bot 8af420bd6a Localisation updates from https://translatewiki.net.
Change-Id: I5a15e217f69fcdf3a104b7ad56b2559ec739aef0
2023-10-27 09:18:49 +02:00
Translation updater bot 5813b6deb5 Localisation updates from https://translatewiki.net.
Change-Id: I07432cfcd566b73784698bcd68667d85fa15ebb2
2023-10-26 11:02:21 +02:00
Translation updater bot 86dec8b0be Localisation updates from https://translatewiki.net.
Change-Id: I5310a6e3ef8b59fa9ce06d8dca9ce14ab9c3bcf2
2023-10-24 09:36:06 +02:00
Translation updater bot bbe861a765 Localisation updates from https://translatewiki.net.
Change-Id: I8ffe3d3d188895cd997cd626788047af725e8a28
2023-10-23 09:49:54 +02:00
Umherirrender 97a8f0ae6c Replace empty() with a null compare
empty() should only be used to suppress errors
Found by a new phan plugin (T234237)

Change-Id: I5428b4bfe17b5d3a3aca6f07795a1b84af2eaf37
2023-10-21 20:27:31 +02:00
jenkins-bot 04b3165ed0 Merge "phpunit: Avoid hardcoding exact mw-parser-output class attribute" 2023-10-20 16:03:00 +00:00
Translation updater bot c4389870e0 Localisation updates from https://translatewiki.net.
Change-Id: I79d5e93ea491eb783c13f61f4e63841812bdfd6e
2023-10-20 09:18:50 +02:00
Timo Tijhof 09438fd015 phpunit: Avoid hardcoding exact mw-parser-output class attribute
Needed by Ib130a055e46764544af0f1a46d2bc2b3a7ee85b7.

Bug: T341244
Change-Id: Icd9c079f5896ee83d86b9c2699636dc81d25a14c
2023-10-19 19:02:21 -07:00
Translation updater bot 5144912045 Localisation updates from https://translatewiki.net.
Change-Id: Ia42d4c867679a27f705148027d28b78bec555a06
2023-10-19 08:39:54 +02:00
Translation updater bot 20f8436260 Localisation updates from https://translatewiki.net.
Change-Id: Ide616426913cf22035152f0f0a02486db6353045
2023-10-17 09:33:30 +02:00
Translation updater bot b43bff2653 Localisation updates from https://translatewiki.net.
Change-Id: Ie5f5a066556e0edfdbea607de78c53aea1edd3c5
2023-10-16 09:14:57 +02:00
Umherirrender a7f0b7971a Use the expression assignment operator to simplify code
Suggested by phan, available since php7.4

Change-Id: Ibcc1742bd16a16e6518b4851046ad62d85de559e
2023-10-14 00:42:34 +02:00
Translation updater bot a8ef0d166a Localisation updates from https://translatewiki.net.
Change-Id: I647a0086c89ad5ffe5730993f528cfd503e5e1ca
2023-10-12 09:28:40 +02:00
Translation updater bot e6beacd73c Localisation updates from https://translatewiki.net.
Change-Id: Ia39e3062b841efc35ce4f8d5fd0d46c3efc1a775
2023-10-11 08:44:34 +02:00
Translation updater bot 2c1217ec40 Localisation updates from https://translatewiki.net.
Change-Id: Ic3c2478ae2f531a6c2f51629355b6fbc3c6d73dd
2023-10-09 08:54:59 +02:00
Translation updater bot c03d05dc88 Localisation updates from https://translatewiki.net.
Change-Id: I14aaf1bbde61af29d8e305fbd1358ac4cd709069
2023-10-06 09:17:51 +02:00
Bartosz Dziewoński 0f63d6011c Parse wikitext in page titles with filter number as parameter
Follow-up to 0ff282dcc3.

Bug: T343994
Change-Id: I14cc0cebcf10fb552475ef6ffbab9dcfa55221cd
2023-10-05 20:54:58 +00:00
Bartosz Dziewoński 1e54192b1b Fix non-escaped messages used in page subtitles
Reported by Phan, and also discoverable with ?uselang=x-xss.

Change-Id: Ieb41d11acf543784f1cfbca5ea2272ac0bffc9a9
2023-10-05 22:51:21 +02:00
Translation updater bot f1827c26b2 Localisation updates from https://translatewiki.net.
Change-Id: Ic07e31b54cdb0d1454c78e1653ef3b114e7f97a2
2023-10-05 09:11:07 +02:00
Translation updater bot a1578ecafe Localisation updates from https://translatewiki.net.
Change-Id: I9f48eb30b86eb2e3cc7bf52c9bcf9f74e87a5ac4
2023-10-04 09:06:56 +02:00
Translation updater bot d8af3e5d9c Localisation updates from https://translatewiki.net.
Change-Id: I90a08170b99907de59ab9ac938bdf3c10d20cb18
2023-10-03 09:31:51 +02:00
Translation updater bot 359801cf14 Localisation updates from https://translatewiki.net.
Change-Id: Ia9d24a6df83141a862da7457eab60f85147962b7
2023-10-02 10:55:07 +02:00
Amir E. Aharoni 77cea2bf02 Remove "Back to" from two messages
These two messages appear at the top of pages such as
https://en.wikipedia.org/wiki/Special:AbuseFilter/history/50/diff/prev/27425

The words "Back to" are not really necessary there. It's clear enough
to simply write "Filter editor" and "Filter history", without showing
"Back to" next to each other.

Change-Id: I44672ffd49ba6c24dbf49f9c7de3bbd72f154dbf
2023-10-01 07:38:07 -04:00
thiemowmde 8565b8d7c4 Use assertStatusGood and such from MediaWiki core
Turns out the MediaWikiIntegrationTestCase base class comes with a
bunch of convenience methods for this. We can even remove the custom
messages because these methods already print a lot of debug info in
case of a failure.

Change-Id: I61fd86f1560c8e3bcf39a30b09fecdb063424613
2023-09-28 12:24:52 +00:00
Translation updater bot b7112c6152 Localisation updates from https://translatewiki.net.
Change-Id: Ibea422a44c2438eb8a811afd37b06c165a56523d
2023-09-27 09:18:53 +02:00
Translation updater bot 2f99eb38ed Localisation updates from https://translatewiki.net.
Change-Id: If170b6437db1e387e4d625ee4abc45ae72ff8fb8
2023-09-26 08:42:38 +02:00
jenkins-bot df88b1b4b7 Merge "Revert "Remove unused SecurityCheck-ReDoS suppression"" 2023-09-25 20:19:36 +00:00
Daimona Eaytoy 7896e8f2c4 Revert "Remove unused SecurityCheck-ReDoS suppression"
This reverts commit 2107ee4f38.

Reason for revert: T347220

Change-Id: If76c4d0d7564d48bf231173d1d8f5177127fc5fa
2023-09-25 16:07:21 +00:00
Translation updater bot a58e5e77e5 Localisation updates from https://translatewiki.net.
Change-Id: I63f82cbe0aaa4b380822361d79097a15c33cc71d
2023-09-25 08:44:55 +02:00
C. Scott Ananian 0ff282dcc3 Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()
The new method formats the message with Message::escaped() which
better protects from bad HTML in the message.

The ::setPageTitleMsg() method was added in 1.41 and this extension
already requires MW >= 1.41.

Bug: T343994
Change-Id: Ic07cde3bafeaa0325024fe89b4948680d04c4820
2023-09-22 21:18:03 +00:00
C. Scott Ananian 2107ee4f38 Remove unused SecurityCheck-ReDoS suppression
Change-Id: I7809c29e1150ea6770f3aa70a3fb790f3e4ce32f
2023-09-22 21:17:31 +00:00
Translation updater bot c899ff5316 Localisation updates from https://translatewiki.net.
Change-Id: Iae558262adcd319287cc45db4920c4e9a355b458
2023-09-21 10:14:50 +02:00
Translation updater bot e81a3d9c97 Localisation updates from https://translatewiki.net.
Change-Id: I14656cf8d751a7d1f4d15ab42bdb9a14c0490754
2023-09-20 08:53:46 +02:00
Translation updater bot 3d1fcddabd Localisation updates from https://translatewiki.net.
Change-Id: I251f47802feea9fd8d20f23aa16be664bf4b6fc3
2023-09-19 09:24:46 +02:00
Translation updater bot e11f31b867 Localisation updates from https://translatewiki.net.
Change-Id: Ifdd0cea8c073a7e68b2176bed1f688798a4eb2a7
2023-09-18 08:41:44 +02:00
Translation updater bot 0e960f2846 Localisation updates from https://translatewiki.net.
Change-Id: I7391062bff4543098c61ae47da9716eb575c02e3
2023-09-14 09:28:47 +02:00
Translation updater bot e84c1673c7 Localisation updates from https://translatewiki.net.
Change-Id: I8a09aa76c02a7a3b672a7a7b693b63b10ae2e2b4
2023-09-13 08:31:03 +02:00
Translation updater bot d72cd55e7d Localisation updates from https://translatewiki.net.
Change-Id: I1a1de520db2523ef121601f314448f00618aa02a
2023-09-12 08:25:53 +02:00
jenkins-bot 1f1c5e477b Merge "When testing against a page creation in RC, set page_id to 0 as in the real filtering" 2023-09-11 09:28:33 +00:00
Translation updater bot 07788d040f Localisation updates from https://translatewiki.net.
Change-Id: I85e2ad3b040864d211789781cb9bf23b86698911
2023-09-11 09:01:23 +02:00
Translation updater bot 9fce35e6c0 Localisation updates from https://translatewiki.net.
Change-Id: If4110199c1b3ebf3ffcb636d37eead3b2aa54315
2023-09-07 11:08:24 +02:00