Commit graph

2361 commits

Author SHA1 Message Date
Marius Hoch 4cb9a96ac9 Don't trigger filter hits for nonexisting filter 0
AbuseFilter::getConsequencesForFilters uses filter ids as
array keys, that causes problems if both local and global
filters were hit, because array_merge reindexes arrays.

Example:
https://www.mediawiki.org/wiki/Special:AbuseLog/18687

Change-Id: I81cb110322461e30113199cfa313cd8e8e8b2262
2013-07-09 13:57:22 +02:00
Translation updater bot 243df103b3 Localisation updates from http://translatewiki.net.
Change-Id: I75dcdb3aa8b5d46c8c640e2999a5b4fbcc8ec12f
2013-07-08 18:58:38 +00:00
Marius Hoch 35747761fb Allow running the AbuseFilter parser tests via phpunit
I've also added myself to the credits file as I'm the only
maintainer of this extension for a while now.

Change-Id: Id998172ea2abd70b8243de9db1a96cc2cfa47a64
2013-07-08 19:22:43 +02:00
jenkins-bot 250cce6c00 Merge "Make use of the APIEditBeforeSave hook for nicer errors" 2013-07-08 17:19:29 +00:00
Marius Hoch 83357aafd0 Make use of the APIEditBeforeSave hook for nicer errors
Bug: 32216
Change-Id: I654eb21faffa1371f637d98d0fcd38c005048507
2013-07-08 19:10:25 +02:00
Translation updater bot 19f089c0d1 Localisation updates from http://translatewiki.net.
Change-Id: I30797d74afdfd9bd81260e240a28d58f3d4b8802
2013-07-07 19:39:21 +00:00
Translation updater bot 618465140d Localisation updates from http://translatewiki.net.
Change-Id: Id5189eb27b3800400d8bc8be1326019eb769f9a1
2013-07-06 18:59:53 +00:00
Translation updater bot a80521f9bf Localisation updates from http://translatewiki.net.
Change-Id: I407229fc46ede4831ae289473ace866fc6cee813
2013-07-04 20:06:31 +00:00
Translation updater bot 321b567c1a Localisation updates from http://translatewiki.net.
Change-Id: Iaa9159c4c461fb2dee6e132d47ed651ce6c9ac27
2013-07-03 19:59:47 +00:00
jenkins-bot 2e8fc6f751 Merge "Prevent custom warning messages for global rules" 2013-07-02 21:41:48 +00:00
Marius Hoch 013889c5ac Prevent custom warning messages for global rules
This prevents an abuse filter admin from setting a custom warning
message (which are references to a non-translated, local wiki page),
for global filters (which can be on any wiki in any language).

bug: 45164
Change-Id: If61716053b75f45e4b70f78d3809ddd02ac6d83e
2013-07-02 23:20:06 +02:00
Marius Hoch 9823d78e3b Make AbuseFilter work without AntiSpoof
This dependency isn't really needed in many cases
while it can cause troubles if not fulfilled.

Change-Id: I9990e99c4d3d49b5bc400bbc4a0ec02142d6f055
2013-07-02 21:50:23 +02:00
Translation updater bot cf190f71a2 Localisation updates from http://translatewiki.net.
Change-Id: Ie0260844202c2f7bbbe8939d909e471b9f4dd016
2013-07-01 19:52:44 +00:00
MatmaRex 6756f6f936 Pass context when contructing DifferenceEngines
Change-Id: I926c910bf983ae023bfc0c20a9262a1bde452a17
2013-06-29 23:52:08 +00:00
MatmaRex 3d4d705b06 AbuseFilterViewDiff: Make diffs use standard styling (and more)
They still used old 1.18-style diffs, with styles copied from core.

Also:
* Remove the distinction between "simple" and "multiline" diff chunk,
  enabling consistent styling
* Always show word-level diff, even in previously "simple" chunks
* Ensure the full context is always shown. This was clearly intended
  (showing straight side-by-side comparison if there were no changes
  and in "simple" chunks, diff otherwise; showing chunks with no
  changes), but the default context is only 2 lines.
* Remove the distinction between 'wikitext' and 'text' diffs (all are
  treated like 'text' was); it's impossible to show parsed code with
  word-level diff, and it was only enabled for "simple" chunks, all of
  which are intended to be one-line strings and are shown unparsed
  elsewhere (e.g. filter description on the list on Special:AbuseFilter)

Bug: 36478
Change-Id: Ie24ad5ac5a9a2bc9b8f0fc0c4a03d5dfe7a6a83f
2013-06-29 23:43:45 +00:00
Translation updater bot 5602cd33d2 Localisation updates from http://translatewiki.net.
Change-Id: I9c8b5c1191964f24869d8d04156afe2ae773ac78
2013-06-29 19:34:29 +00:00
Translation updater bot bc13ac9317 Localisation updates from http://translatewiki.net.
Change-Id: I1b7aedba7ea1d17a35b3e14331122f2e766407dc
2013-06-27 19:53:35 +00:00
Marius Hoch 8957c003ba Revert "Change AbuseFilter to use UserCache instead of user_text fields"
This reverts commit aaa256aa94.

Bug: 49918
Change-Id: I597cbc03e2ecc45cfcca632232d5bbb1ef7be9d8
2013-06-27 01:01:15 +02:00
Translation updater bot 1b010b58ce Localisation updates from http://translatewiki.net.
Change-Id: I56611ad574fad8db2cea4d4f222184ee9010ec84
2013-06-26 19:19:43 +00:00
Translation updater bot 022e279937 Localisation updates from http://translatewiki.net.
Change-Id: I9b85c67087503d3d5492d2cae4425db14acfe303
2013-06-25 19:53:55 +00:00
MatmaRex ddb57635be SpecialAbuseLog: use DifferenceEngine::addHeader to render diffs
Not sure why it wasn't used, maybe because it does a little more
than the bare minimum we need here.

Change-Id: I5e604474849d1389fc4cc260c76cf80e4e466bf5
2013-06-25 17:25:14 +00:00
Translation updater bot 21f188533f Localisation updates from http://translatewiki.net.
Change-Id: I8b9af2e9f8692e5d2e6f2926cf8c24e3d3669287
2013-06-24 19:53:04 +00:00
Translation updater bot 4657ef7d2f Localisation updates from http://translatewiki.net.
Change-Id: I9e76e7a32714672233d85ee491aacf3a17e8cff9
2013-06-23 20:22:47 +00:00
Translation updater bot f680a34f81 Localisation updates from http://translatewiki.net.
Change-Id: I35050aae059f10b86dcbe9dfe8eb2a4ac4342754
2013-06-22 21:26:49 +00:00
Translation updater bot 6bddc7ca46 Localisation updates from http://translatewiki.net.
Change-Id: I8f759e4171b08f206652d850c2d98d97a53fea97
2013-06-19 20:35:15 +00:00
jenkins-bot c56df4d07b Merge "Allow filtering links and html for page creations" 2013-06-19 17:11:41 +00:00
Translation updater bot 182f5995cf Localisation updates from http://translatewiki.net.
Change-Id: I3a93262764ed8923178bb1597377140ad92dc751
2013-06-15 20:58:13 +00:00
Translation updater bot cf0c53682c Localisation updates from http://translatewiki.net.
Change-Id: I8de34cc1433406e500fb7290d81927a0cb52ae6b
2013-06-14 21:46:09 +00:00
Translation updater bot a732fb695f Localisation updates from http://translatewiki.net.
Change-Id: I50d108f82c136a81ae97732c31702aa50832b1f6
2013-06-12 19:52:05 +00:00
Translation updater bot 4988bbd7ea Localisation updates from http://translatewiki.net.
Change-Id: Ic16e452949737d5f95ab8fec1ba2cd5329b227af
2013-06-11 20:50:05 +00:00
Marius Hoch 3ab18c2306 Don't try to filter uploads with an invalid title
This was causing fatals and is pointless anyway as
these uploads will never succeed.

Bug: 49399
Change-Id: Ifb16afe3e02854b8f53eb8dae87e13de669381ab
2013-06-11 15:21:26 +02:00
MatmaRex 697e2b2415 CSS: Minor code style fixes
Change-Id: Ib0b6e441be90a76a956884e0925e808ce23d25eb
2013-06-10 18:52:15 +02:00
Translation updater bot 32f16249a1 Localisation updates from http://translatewiki.net.
Change-Id: I761d56d2c28c1749c7a0bf771a282e1c484b51f3
2013-06-10 07:20:37 +00:00
Marius Hoch 89726ae861 Allow filtering links and html for page creations
Right now it's impossible to filter added_links etc.
for page creations.

(Only slightly tested)

Change-Id: Iee07fc8bfe41e78abb73d8ae969aa1e4d97339bc
2013-06-05 03:52:29 +02:00
Translation updater bot 51b19d35f3 Localisation updates from http://translatewiki.net.
Change-Id: I42a81298836a6f25845c09121eb852bc31d15978
2013-06-03 18:14:00 +00:00
Translation updater bot 49d6765f72 Localisation updates from http://translatewiki.net.
Change-Id: I46f7861f5c609db67d288ee15113842df8930e16
2013-06-03 11:38:00 +00:00
jenkins-bot ddc511ab15 Merge "Fix AbuseFilter::disableConditionLimit()" 2013-05-29 21:38:53 +00:00
Translation updater bot 0e0b3a5343 Localisation updates from http://translatewiki.net.
Change-Id: Idba516737216a953a36ecd85c6f7817132bbb1ab
2013-05-29 08:33:25 +00:00
Translation updater bot 4867127c97 Localisation updates from http://translatewiki.net.
Change-Id: I1c88767378c6efc8d20cc9712bab5274ce2a6d54
2013-05-28 06:42:12 +00:00
Marius Hoch a7aa0fa185 Fix AbuseFilter::disableConditionLimit()
Used for Special:AbuseFilter/test

Change-Id: I964efbbb0be7cae418746667778874790fdbb499
2013-05-28 00:43:33 +02:00
jenkins-bot 725ddeba4a Merge "Hide external changes in Special:AbuseFilter/test" 2013-05-25 09:05:12 +00:00
Translation updater bot a2d8d96772 Localisation updates from http://translatewiki.net.
Change-Id: Icf75bc98713a9c2896602df531880eeb5f0194e2
2013-05-25 08:22:22 +00:00
Marius Hoch 7705e90506 Hide external changes in Special:AbuseFilter/test
Like on /examine

Change-Id: I760ad45f9858ccf088e5a8a12ddb57770a4a4ff8
2013-05-24 22:24:06 +02:00
jenkins-bot 592caf10b6 Merge "Hide external changes in Special:AbuseFilter/examine" 2013-05-24 17:34:04 +00:00
Marius Hoch baf5001d34 Remove redundant class for syntax errors
Removed the redundant clss mw-abusefilter-examine-syntaxerror
as it was causing trouble because the syntax checker in
ext.abuseFilter.edit.js wasn't aware of it.

Change-Id: Ibb90c3e096c3914905c03a3e30c08ba8d14c9024
2013-05-24 16:45:35 +02:00
Marius Hoch 841c7e0c9e Hide external changes in Special:AbuseFilter/examine
Doesn't make sense to have them in there.

Change-Id: I699641a017f03534cb82302a83025f0194a198fe
2013-05-24 16:34:22 +02:00
Translation updater bot 36d046d508 Localisation updates from http://translatewiki.net.
Change-Id: Id7c8f290cdce4093436af50ecbbc2a8713b51917
2013-05-24 08:23:28 +00:00
jenkins-bot 4dca6c6e14 Merge "Fix the subtitle for the AbuseFilter history view" 2013-05-23 14:02:15 +00:00
Marius Hoch 6ac46771c6 Fix the subtitle for the AbuseFilter history view
The html was wrongly escaped. Also append it to the
existing one to leave the navigation in place.

See the subtitle on:
https://en.wikipedia.org/wiki/Special:AbuseFilter/history/?user=Foo

Change-Id: I5725fe15eda1a48fd313c6394800e8b92c450d9d
2013-05-23 13:04:09 +00:00
Translation updater bot 955a63d76a Localisation updates from http://translatewiki.net.
Change-Id: I8b31d6be52346e78feeac92d13ef4867e30026c7
2013-05-23 05:37:49 +00:00