Commit graph

4183 commits

Author SHA1 Message Date
jenkins-bot b7b04cb830 Merge "Avoid Call Stack warning when there is an error in the regex pattern" 2017-11-03 20:01:30 +00:00
Translation updater bot 47ad5b7812 Localisation updates from https://translatewiki.net.
Change-Id: I098c30009e07c2e3632c68b5420977d3f711585f
2017-11-02 22:39:14 +01:00
Kunal Mehta c9f40f3d44 build: Adding MinusX
Change-Id: I3e6ffe2f4b4ed921abbd282359644d2329bbd41f
2017-11-02 11:57:07 -07:00
Huji Lee 7b7be07957 AbuseFilter block range should not exceed $wgBlockCIDRLimit
This patch introduces a config variable for the range block sizes.
It changes the default IPv6 block size from /16 to /19 using the
same reasoning as  Ia25e156fd8234519c4d74f1d41d93f94a313ce14

Using a config var (as opposed to hardcoded range size) allows
future changes proposed in T179454 to make the range size vary
for different IPs, based on the actual subnet they belong to.

Bug: T179455
Bug: T179456
Change-Id: I8dfa17f553a7af524f0a11c0fd51c48773e27be5
2017-11-02 12:08:49 +00:00
Huji Lee 0f7f4ad917 Add missing documentation for protected functions
Bug: T178007
Change-Id: Ia1ae78b30b889b7a8965354ae0a404bf9a520917
2017-11-02 03:20:34 +00:00
Huji Lee ace1822575 Filter ID should always go through formatNum()
Change-Id: I2bd833c35128b3c39c7882321747837184095bef
2017-10-31 22:11:55 -04:00
jenkins-bot 689b7abaff Merge "Remove back-compat code paths" 2017-10-31 16:12:40 +00:00
jenkins-bot f5536f964e Merge "Update for deprecation of selectFields() methods" 2017-10-31 16:08:46 +00:00
Brad Jorsch 6071e7a43f Remove back-compat code paths
Per T178092, AbuseFilter now maintains compatibility with older versions
of MediaWiki using release branches. Thus, various back-compat code
paths may be removed from the master branch.

Change-Id: Ia1b5eade30d7486e3b1b386b15a7db4e5c8cfead
2017-10-31 09:37:54 -04:00
Brad Jorsch 7ed9160ea9 Update for deprecation of selectFields() methods
Various selectFields() methods were deprecated in MediaWiki core change
Idcfd1556, replaced with getQueryInfo() methods.

Change-Id: If75d2e76c2f166bc40a544dd502da43171ce1e7b
Depends-On: Idcfd15568489d9f03a7ba4460e96610d33bc4089
2017-10-31 09:27:27 -04:00
Translation updater bot bdd3a04dbc Localisation updates from https://translatewiki.net.
Change-Id: I6900237309fe6475ee30736d67e22d62c7fa3e7e
2017-10-27 22:13:54 +02:00
Max Semenik 32598c18bb Drop FastStringSearch support
This PHP extension doesn't have any speed benefits over our minimum
required PHP and so isn't used in WMF production anymore.

Change-Id: I4883643908f765eee5db6b3ca88eed179264e93f
2017-10-26 00:51:07 +00:00
Translation updater bot 08a2853757 Localisation updates from https://translatewiki.net.
Change-Id: I04f2e53acf53b7baa2da760aee674bfbb92ca8d6
2017-10-25 22:28:45 +02:00
Translation updater bot 5951fd0747 Localisation updates from https://translatewiki.net.
Change-Id: I5c8d8ac2632a01b2e54868da74948487c4f18b57
2017-10-24 22:55:44 +02:00
Translation updater bot 5b1c630538 Localisation updates from https://translatewiki.net.
Change-Id: I11ee1477f6d855a11aa8b7e43e2b25e7a22c45b0
2017-10-22 22:23:38 +02:00
David Barratt 5335b6c811 Use Equivset library intead of AntiSpoof
Use the new equivset library instead of AntiSpoof.

Bug: T175413
Change-Id: I439387deeba99543e194c210953ac73ff98bc5b7
Depends-On: I977d3498b2084a426e2ab4d85c000d1b9dcfe824
2017-10-21 21:55:18 -07:00
jenkins-bot 83d67e4a12 Merge "Restore accidentally deleted code" 2017-10-22 04:09:59 +00:00
jenkins-bot 82ce683000 Merge "Pass LinkRenderer instance to AbuseFilter::addNavigationLinks" 2017-10-22 04:09:59 +00:00
jenkins-bot 610cfa8662 Merge "Normalize IPv6 addresses in Special:AbuseFilter/test" 2017-10-22 04:09:14 +00:00
Matěj Suchánek 5839b7c412 Restore accidentally deleted code
I have noticed I accidentally dropped this code during
Iec237b288 (apologize!).

Change-Id: Ifbd53575ddf8dd1014de19afea395d0eb537c6ee
2017-10-21 08:09:36 +02:00
libraryupgrader 9022148cc4 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: Iaa8d8b67b8a27a909e3108585660fa3c2495e1fc
2017-10-21 04:16:06 +00:00
Simeon Dahl 4c0636bc0a Cleanup, added spaces
Added spaces in some classes so it follow the same style as the others.
Edit is pure cleanup.

Change-Id: If5d5e6e4e99eed83aa69dfb4a224fbcc7c077d43
2017-10-19 09:40:22 +02:00
Translation updater bot bb339fbcd2 Localisation updates from https://translatewiki.net.
Change-Id: Idfa44efd3bc5e71a8f7f71dfc489de636f1f133d
2017-10-17 22:34:00 +02:00
jenkins-bot 22e68a61ca Merge "Add slow filters debug data to the logs." 2017-10-12 23:11:50 +00:00
Dayllan Maza 3e1c5b9099 Add slow filters debug data to the logs.
When $wgAbuseFilterRuntimeProfile is true, all filters taking
longer than $wgAbuseFilterRuntimeLimit will be logged for
later analysis

Bug: T174205
Change-Id: Id81833afa8421476a6cee47eb3393acdb3a38d65
2017-10-12 17:41:49 -04:00
Translation updater bot 24e8031d48 Localisation updates from https://translatewiki.net.
Change-Id: I7122d0f4a2f4bf5af9cffad5e96b582c904082ad
2017-10-11 22:47:32 +02:00
Translation updater bot 21393a3e88 Localisation updates from https://translatewiki.net.
Change-Id: I962e8e68c9c9a421318e6cbf3e4c54299db6c8f9
2017-10-10 22:43:35 +02:00
Translation updater bot 6a494fc073 Localisation updates from https://translatewiki.net.
Change-Id: I33351a19fa97c281a0ea42c3442f4fdb2839670b
2017-10-09 22:37:43 +02:00
melos 9eb99b1dc9 Avoid Call Stack warning when there is an error in the regex pattern
When you are in Specia:AbuseFilter/test and you test a filter
against RC if the filter has a regex with a rlike condition
you receive a Call Stack warning for a wrong regex.

Bug: T177744

Change-Id: I2bc62b5709d2863eb355a249610b3e80fab55448
2017-10-09 10:48:20 +02:00
Umherirrender a2ebd0c70a Improve some parameter docs
Change-Id: Ibac10a20243a4eedd826485d56eddd5234da6fec
2017-10-07 00:54:58 +02:00
jenkins-bot f93f0d4bfb Merge "Add ccnorm_contains_any function" 2017-10-06 20:06:18 +00:00
Dayllan Maza 2bc8873c30 Add ccnorm_contains_any function
Normalize and search a string for multiple substrings

Bug: T65242
Change-Id: I4034c0054a6849babbf2d96ea13dc97d3660d5b4
2017-10-06 11:32:45 -04:00
Translation updater bot 708f30da6d Localisation updates from https://translatewiki.net.
Change-Id: I8513026b600bf328d2503f2030113d966cd8aea4
2017-10-05 22:27:30 +02:00
Translation updater bot e89763aa6a Localisation updates from https://translatewiki.net.
Change-Id: I9a93cee6e97887aca02b6ce89e1c89f0db021486
2017-10-04 22:27:35 +02:00
Translation updater bot 00f0bdf939 Localisation updates from https://translatewiki.net.
Change-Id: I9cb4e4540f9deff88e40b947a4a4870a16662327
2017-10-03 22:36:35 +02:00
Translation updater bot 8dd6a1e138 Localisation updates from https://translatewiki.net.
Change-Id: Ie51f6240a2fc0701aa6a6a9749f450e4a1cfee1b
2017-10-02 22:39:49 +02:00
Translation updater bot f9bbb42498 Localisation updates from https://translatewiki.net.
Change-Id: If9b9ec79b843c0d4eb75133987c686baa84005f9
2017-10-01 22:17:16 +02:00
Translation updater bot b4be0b38d5 Localisation updates from https://translatewiki.net.
Change-Id: Icc0106bff319c0e158aba99e25224396291e7e36
2017-09-30 22:29:11 +02:00
Matěj Suchánek 08899056d2 Normalize IPv6 addresses in Special:AbuseFilter/test
Forcing user namespace will handle IPv6 correctly as well
as possible "User:" prefix supported by the former code.

Bug: T176045
Change-Id: I0b4a5468ca44799cade0b0774d749e05d4ff5865
2017-09-29 21:02:52 +02:00
Translation updater bot 23c27a85cc Localisation updates from https://translatewiki.net.
Change-Id: I290f812205102e612220ea9695b05f8d6a3a6b7c
2017-09-28 22:20:45 +02:00
Translation updater bot 8301216ead Localisation updates from https://translatewiki.net.
Change-Id: Ic6114e700f12da7d96ea1f8fd241ba3b2d084494
2017-09-26 22:27:38 +02:00
Translation updater bot a295890b6b Localisation updates from https://translatewiki.net.
Change-Id: Ia133f6182e6b8063b8e30c9b7d49230834b79f34
2017-09-25 22:24:00 +02:00
Translation updater bot b70336ccbc Localisation updates from https://translatewiki.net.
Change-Id: I51b0d43a0b6cb55865420abeb37d050c63983e21
2017-09-24 22:27:48 +02:00
libraryupgrader 781f6c2554 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
The following sniffs are failing and were disabled:
* MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle

Change-Id: I7163cd8f97a7d2fe5b4410245a72eb416302f4f6
2017-09-24 05:19:01 +00:00
Translation updater bot 0ae0cbb7f6 Localisation updates from https://translatewiki.net.
Change-Id: I68290aa0e5f117c685db49a8bf30ed7da3bc60bb
2017-09-20 22:35:33 +02:00
Translation updater bot 9382c24934 Localisation updates from https://translatewiki.net.
Change-Id: I4b4a2779ef8e3f45e6b2b216e42a1cd3995d1a82
2017-09-19 22:41:58 +02:00
Translation updater bot 442aac0dfd Localisation updates from https://translatewiki.net.
Change-Id: I61bd476952e560df0e54e8cfb28c96a5a38dc2cb
2017-09-16 22:35:09 +02:00
Translation updater bot 45ecc00211 Localisation updates from https://translatewiki.net.
Change-Id: I00ed08571490da417099847f3b8ccb7a209f006d
2017-09-15 22:21:41 +02:00
jenkins-bot f00de10b24 Merge "Fix confusing warning message on throtthled filters" 2017-09-14 21:10:47 +00:00
Translation updater bot 0beae7453a Localisation updates from https://translatewiki.net.
Change-Id: Iaf6345f38a6e69cc51c8cb4d3f1706e556b77aa2
2017-09-14 23:06:04 +02:00