Commit graph

1996 commits

Author SHA1 Message Date
Kunal Mehta b8f53e27c3 Create variable to set length of IP blocks
This creates a $wgAbuseFilterAnonBlockDuration, which
allows for IP blocks to have a different length.

For backwards compatability this is default set to
$wgAbuseFilterBlockDuration.

Change-Id: Ibfd5c9639317150442f745a5759f3c34b38de274
2013-02-08 04:59:54 -06:00
Translation updater bot 818b163f28 Localisation updates from http://translatewiki.net.
Change-Id: I697680e5d4131603c2daeaf5b4212d53a6316fdf
2013-02-07 20:33:36 +00:00
Hoo man 008ddf532a Merge "Remove in_string() usage" 2013-02-06 21:24:09 +00:00
Translation updater bot 9564a100ac Localisation updates from http://translatewiki.net.
Change-Id: Ia0d76c0578c8c999dd67324c922546bfbc9947e4
2013-02-06 20:14:15 +00:00
Chad Horohoe 0cd1053d21 Remove in_string() usage
Change-Id: I8ff74a827d742fdaf7d63d51be1f2300bbb5436b
2013-02-06 14:46:03 -05:00
CSteipp cdb494245f Merge "Escape AbuseFilter description properly (disallow wikitext)" 2013-02-04 23:23:52 +00:00
Marius Hoch 3a3c738f50 Escape AbuseFilter description properly (disallow wikitext)
Right now the public description of AbuseFilters can contain
wikitext which will be parsed.

With this change the public description will be escaped
everywhere to prevent the parsing of eg. templates on
Special:AbuseFilter/history.

Change-Id: I777cac5fc195819ed296f791d0b8cc3ed2ae9eea
2013-02-05 00:08:20 +01:00
Translation updater bot 0099050a20 Localisation updates from http://translatewiki.net.
Change-Id: I88d9f392b9c18eebc6b70b1fe5232f824bd3e0d2
2013-02-04 22:16:21 +00:00
Translation updater bot 04d506682d Localisation updates from http://translatewiki.net.
Change-Id: I28fafa712a5b6c1d4bd62a2395028d797b0eef3c
2013-02-02 21:26:55 +00:00
Translation updater bot 4c1a72bb45 Localisation updates from http://translatewiki.net.
Change-Id: I7492471096e88197dee68913efa3bf59ec0c47e1
2013-02-01 22:12:47 +00:00
CSteipp 27c083a9d5 Merge "Fix the abusefilter array parser test" 2013-01-31 23:24:37 +00:00
Translation updater bot d3bf7013d9 Localisation updates from http://translatewiki.net.
Change-Id: I44604cb3f4f4385029b4b69f1dc92207dc0605cb
2013-01-31 20:40:16 +00:00
Translation updater bot 347e0e4def Localisation updates from http://translatewiki.net.
Change-Id: I2d0da690ac55267360519cbaea2d7b9ac226884f
2013-01-30 20:46:51 +00:00
Translation updater bot 47054bac8a Localisation updates from http://translatewiki.net.
Change-Id: Ibc9cd9648027e9a42214ca6d714971a1fbdc40e7
2013-01-29 20:58:59 +00:00
Translation updater bot 53077936f7 Localisation updates from http://translatewiki.net.
Change-Id: Ic4616fdff27a53d21764580ea8428468a6cbdd19
2013-01-28 21:49:27 +00:00
Translation updater bot 386cca926d Localisation updates from http://translatewiki.net.
Change-Id: I63f903c9a1cc9692e5a04fe11958dc7ac05f1cdd
2013-01-27 17:30:20 +00:00
Translation updater bot 372d444da3 Localisation updates from http://translatewiki.net.
Change-Id: Ic4c60c7a7642cdf19ed0a386078160f5ebc1b3fa
2013-01-26 20:11:42 +00:00
Translation updater bot 04fb42607c Localisation updates from http://translatewiki.net.
Change-Id: I45d0240f4b2e92a6a3b9d2e24fdf8fc8479b9d95
2013-01-25 20:32:57 +00:00
Translation updater bot 7ad2f67b15 Localisation updates from http://translatewiki.net.
Change-Id: I6b4f7c20a2610fd73b4e5ae296657bc3ab57f938
2013-01-24 20:57:05 +00:00
Liangent 15396616b6 Add trailing newlines to wikitext before sending for diff
Otherwise an edit from "a" to "a\nb" is generating a diff:

-a
+a
+b

Change-Id: I1093a018b863f5630e6a34bbe8b466acfa606b6b
2013-01-24 00:24:01 +00:00
Translation updater bot 6ea6c63256 Localisation updates from http://translatewiki.net.
Change-Id: Ibef6bdedf770397c9a5f15c8246dd13dbb986cd3
2013-01-23 22:10:14 +00:00
Hoo man b4297b4daf Merge "(bug 44243) Avoid fatal error for non-text content." 2013-01-23 18:14:12 +00:00
daniel c673fe60d9 (bug 44243) Avoid fatal error for non-text content.
AFComputedVariable::compute() caused fatal errors when trying to handle
non-text content, e.g. in Special:AbuseLog.

For now, we just stub out some variables for non-textual content. Extensions
can still provide values for these using the AbuseFilter-interceptVariable hook.
A real solution requires us to make the Content object available along with the
variable array, or at the very least log the base revision id of filtered changes.

Change-Id: I795549b733f2f418b471223786d206fd8925d8fc
2013-01-23 18:10:58 +01:00
Translation updater bot 5b002fcdff Localisation updates from http://translatewiki.net.
Change-Id: If5ced77cc5b8152763307f5481710718fe87d45b
2013-01-22 20:48:09 +00:00
Hoo man 8cb215bc01 Merge "Allow special pages as context for abuse filter." 2013-01-22 13:18:54 +00:00
daniel c1f8d749a7 Allow special pages as context for abuse filter.
The title in the context provided for an edit may be a special page
in some cases, e.g. when an extension uses a special page for creating
new content, and the final name of the content is not yet known
when the EditFilterMergedContent hook is called.

This change will allow special pages to be used in this context.

Change-Id: I5551bff69e3b617a437bd043fdc893dbdcd9f09f
2013-01-22 14:08:50 +01:00
Translation updater bot 66b54ee101 Localisation updates from http://translatewiki.net.
Change-Id: Ic911b4d10892333a13e94737aaae6f3808111162
2013-01-21 20:44:45 +00:00
Translation updater bot 03f51e9413 Localisation updates from http://translatewiki.net.
Change-Id: I165b3a1ce42534cdf51cb80b761a9798e88196ff
2013-01-20 19:39:57 +00:00
Translation updater bot 59f78218fe Localisation updates from http://translatewiki.net.
Change-Id: Ic08d0f3435c0f28c8af79fc985376876c3fc3480
2013-01-19 16:08:33 +00:00
CSteipp 082ce572dc Merge "(bug 18174) Added Older and Newer change link to Abusefilter diff" 2013-01-18 18:08:33 +00:00
Marius Hoch c4e78e9713 (bug 18174) Added Older and Newer change link to Abusefilter diff
On top of that I changed /history to no longer show the
changes link if it's the first revision of the filter.

As I was on it I fixed the diff selection for diffs like
history/1/diff/2/next where change number 2 was compared
to the last change of the filter instead of the next one.
This probably went unnoticed because the /next action isn't
linked anywhere within the software itself.

Change-Id: Ic28bb696a4dbbb75e0bfcae1843ccefab1a9508a
2013-01-18 10:42:22 +01:00
Translation updater bot 83f7ed04df Localisation updates from http://translatewiki.net.
Change-Id: Id856d64a9a04ebeb736cb673f98d6e5f8942804f
2013-01-17 21:20:39 +00:00
Hoo man 24427e6d76 Merge changes I72e1a6dd,Ibb9d4c9a
* changes:
  Use Status object to report filter results.
  (bug 42064) AbuseFilter + EditFilterMergedContent
2013-01-17 17:43:32 +00:00
daniel 6522f70fb8 Use Status object to report filter results.
This changes the AbuseFilter to use Status objects for internal
error handling. This allows for more flexibility in passing error
messages back from hooks and avoids double escaping.

Change-Id: I72e1a6dd7dee19f889fc13b60456e9bfebd5e22b
2013-01-17 18:34:19 +01:00
daniel f3788c4f0c (bug 42064) AbuseFilter + EditFilterMergedContent
This makes AbuseFilter use EditFilterMergedContent if support for
the ContentHandler infrastructure is present. This means living
without some nice bits of context, because EditFilterMergedContent
doesn't provide an EditPage object.

This requires core change I99a19c93 to work correctly.

Change-Id: Ibb9d4c9a36b8a199213958b920902e8006c71fe8
2013-01-17 11:18:28 +01:00
Kunal Mehta 772a9fa619 (bug 28362) add conditional article_views variable
If $wgDisableCounters is set, using the variable will result
in a syntax error for an undefined variable.

Change-Id: I136484356506c87ac0e2ede088787e854a0a2fa9
2013-01-16 17:03:47 +01:00
Translation updater bot 2c35c8fdeb Localisation updates from http://translatewiki.net.
Change-Id: I868c87ca40be03f5fdd99df0661c6c83b7c3dc82
2013-01-15 21:29:46 +00:00
Translation updater bot 8c7e4e389e Localisation updates from http://translatewiki.net.
Change-Id: Iabea2f8950af422479c666378b2308ddad0bc936
2013-01-14 21:51:03 +00:00
Translation updater bot f0be4a8376 Localisation updates from http://translatewiki.net.
Change-Id: Ie9bc35029c2a1e82ee507ef9cbcc393aa6d220be
2013-01-13 20:34:36 +00:00
Translation updater bot bc2f8e5ff9 Localisation updates from http://translatewiki.net.
Change-Id: I1a8fce992b170eedbecfe57a36ae6e90b96efee3
2013-01-12 20:25:51 +00:00
Translation updater bot 34b6b9d1ac Localisation updates from http://translatewiki.net.
Change-Id: Ic47f7fa0ae0bf24a92f24edee61a107fb08c4a9e
2013-01-11 20:30:07 +00:00
Translation updater bot 1314f2823a Localisation updates from http://translatewiki.net.
Change-Id: I5786b16dfc035ca7ff94aeab332d9b5545b6625e
2013-01-10 21:05:16 +00:00
Translation updater bot 04e7338f7e Localisation updates from http://translatewiki.net.
Change-Id: I1170a3c20d43fd5dff17e100ad0b2c674fd20cef
2013-01-09 22:09:44 +00:00
Hoo man a885db279d Merge "Let AbuseFilter work with 1.19" 2013-01-09 01:42:29 +00:00
Translation updater bot 3116e238b8 Localisation updates from http://translatewiki.net.
Change-Id: Iae54ac9f5af38b34f5a0db1aa24677fd4478202f
2013-01-08 20:26:09 +00:00
CSteipp b8b799630b Merge "Properly integrate $wgAbuseFilterValidGroups" 2013-01-07 23:01:48 +00:00
csteipp 586598b5b2 Let AbuseFilter work with 1.19
This patch allows the current AbuseFilter to work with 1.19, by only
using MWTimestamp if MediaWiki is version 1.20 or later.

Api still needs fixing, but this will get filters running.

Change-Id: I7c9eaf777d529ce15dfd85761784f9ad1443f2bf
2013-01-07 14:53:57 -08:00
Translation updater bot f4ad75655f Localisation updates from http://translatewiki.net.
Change-Id: I99d1356b85114395edd0b720761e731dbb6b563c
2013-01-07 20:53:32 +00:00
Matthias Mullie 0c174aec42 Properly integrate $wgAbuseFilterValidGroups
The concept of different AbuseFilter groups had not properly been integrated, but should be now:
- The total number of matches is now group-specific
- .. Which will also fix the emergency shutdown calculations
- And a portion of incorrect code (involving $logged_local_filters) has been fixed (action != group)

Change-Id: I091199a9d74aee47dcb3d8942394a28e0ffd3234
2013-01-07 14:42:51 +01:00
Hoo man 25232efb24 Merge "Adding a Link back to Abuse filter management page Added the navigation bar Set page title to 'Editing Abuse filter'" 2013-01-06 20:59:59 +00:00