Commit graph

4398 commits

Author SHA1 Message Date
Translation updater bot 6945284054 Localisation updates from https://translatewiki.net.
Change-Id: Ibf6392e9cb66e1601b07eeb8095b49504a3cde86
2017-11-16 23:06:50 +01:00
Translation updater bot aa5592cb42 Localisation updates from https://translatewiki.net.
Change-Id: Id927f2ebcc641122ef7ce544a9baab3e091df715
2017-11-15 22:13:39 +01:00
Translation updater bot 1eaf718c08 Localisation updates from https://translatewiki.net.
Change-Id: I4406aaa4d9cfb9fba5eac7bc445eb1b8ec11d140
2017-11-14 22:15:49 +01:00
Translation updater bot e0560749a6 Localisation updates from https://translatewiki.net.
Change-Id: Ieaaa320a7893536d33016a9f7082d78e49cdc081
2017-11-13 22:26:08 +01:00
jenkins-bot 94c7a1ea82 Merge "Add get_matches function" 2017-11-13 16:52:13 +00:00
jenkins-bot 5a519bd587 Merge "Remove unused parameter from the message" 2017-11-13 16:47:10 +00:00
Daimona Eaytoy 4e20c933f4 Add get_matches function
Added the get_matches function to store a regex match.

Bug: T179957
Change-Id: I19366ebcaa4d0f007dd675a61c91457dde57f604
2017-11-13 17:32:45 +01:00
Huji Lee 389b036ed6 Update the blockrange message in AbuseFilter, remove "/16" from it
This should have really been done as part of I8dfa17f55 but it's
never too late!

Bug: T179456
Change-Id: I833df28634835c675944e3a20e123b5739e05205
2017-11-12 13:26:14 -05:00
Matěj Suchánek f29c053378 Remove unused parameter from the message
This parameter was never documented. It was just
a leftover from migrating to the current message API
in Id69a9d603. Note that the same message pair further up
in this file does not use it.

Change-Id: I38caa1611d78b6cb182861c8f5d731b27379f62a
2017-11-11 13:35:21 +01:00
Matěj Suchánek 957598261c Format filter IDs as numbers
Follows up I2bd833c35.

Change-Id: I3f2241fe791e9918750ef06805f9c4e5d52ee3b4
2017-11-11 12:38:12 +01:00
Translation updater bot 3b3a37bd4a Localisation updates from https://translatewiki.net.
Change-Id: I595533b539a1410baea5c3cc5a6693ec71bc2de3
2017-11-08 22:18:08 +01:00
Max Semenik 58d29d04a1 Use getBatchSize() instead of direct field access
Change-Id: If2dd3a6b80a228605138ae7b6c8da718c0f07d62
2017-11-07 19:39:34 -08:00
Translation updater bot bc47a3a40b Localisation updates from https://translatewiki.net.
Change-Id: I1140ee7b9506ce1bf0fb68c335949aa1896f57e2
2017-11-07 22:23:43 +01:00
Translation updater bot c0b1c76ca9 Localisation updates from https://translatewiki.net.
Change-Id: Ibea806be2b476a42139c786f68ac0c9b1ca3cef1
2017-11-06 22:42:03 +01:00
jenkins-bot f7fe5834dc Merge "AbuseFilter block range should not exceed $wgBlockCIDRLimit" 2017-11-05 05:36:10 +00:00
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