Commit graph

1507 commits

Author SHA1 Message Date
Raimond Spekking 92ffc701da Localisation updates for core and extension messages from translatewiki.net 2011-11-21 21:20:36 +00:00
Raimond Spekking 73b1eb6958 Localisation update for core and extension messages from translatewiki.net 2011-11-19 14:32:52 +00:00
Raimond Spekking 21252c129f Localisation updates for core and extension messages from translatewiki.net 2011-11-17 22:50:20 +00:00
John Du Hart 453af554b9 Added context where possible to main AbuseFilter class
Most of the rest cannot get a context since it originates from hooks with no context sources. Instead of just getting the main context we might as well wait for a proper solution.
2011-11-17 00:55:53 +00:00
Raimond Spekking f1ce33bc5e Localisation updates for core and extension messages from translatewiki.net 2011-11-16 20:05:35 +00:00
John Du Hart 274dcd06a2 Pass one of converting AbuseFilter to use ContextSource
The main AbuseFilter class still needs to be fixed up, but that's a bigger job and I'm out of time
2011-11-16 05:34:24 +00:00
Raimond Spekking 02daab0aa3 Localisation updates for core and extension messages from translatewiki.net 2011-11-14 21:39:03 +00:00
Raimond Spekking 15c52bbcfd Localisation updates for core and extension messages from translatewiki.net 2011-11-14 09:16:03 +00:00
Raimond Spekking da3822dcfa Localisation updates for core and extension messages from translatewiki.net 2011-11-12 21:52:22 +00:00
Raimond Spekking cb57892455 Localisation updates for core and extension messages from translatewiki.net 2011-11-11 20:38:26 +00:00
Raimond Spekking 057efb9795 Localisation updates for core and extension messages from translatewiki.net 2011-11-10 20:56:42 +00:00
Alexandre Emsenhuber 567cce466a svn:eol-style native 2011-11-10 11:51:42 +00:00
Alexandre Emsenhuber 675e4c673a * (bug 29092) Removed usage of $wgArticle from AbuseFilter extension
Instead pass the Article object from the EditFilterMerged hook to the AFComputedVariable object and see whether the object is present to do a parse operation since other code paths won't pass an Article object

Also simplified the fallback code in AFComputedVariable::compute() to simply continue instead of calling the function again.
2011-11-09 08:36:26 +00:00
Raimond Spekking 7a512ab2cb Localisation updates for core and extension messages from translatewiki.net 2011-11-08 20:32:28 +00:00
Mark A. Hershberger f90dc2bcc9 Split AbuseFilter schema updates for SQLite out after briefly talking
with MaxSem about the desired course of action.  Perhaps later these
can be merged back, but this seemed to be the quickest way to get
AbuseFilter working with SQLite working for now.
2011-11-08 03:07:01 +00:00
Raimond Spekking 7ba7dd41dc Localisation updates for core and extension messages from translatewiki.net 2011-11-07 20:46:13 +00:00
Alexander K. 4e133035b8 Followup r102138 -- fixes according to Werdna's comment 2011-11-06 21:05:03 +00:00
Alexander K. f128bd5931 Allow to define custom actions and their callback functions 2011-11-06 01:15:55 +00:00
Raimond Spekking fcfaf6df5e Localisation updates for core and extension messages from translatewiki.net 2011-11-05 21:03:17 +00:00
Brion Vibber a3b99c0d7c * (bug 31870) Fix regression in AbuseFilter: pass/fail checkmark images for syntax checks work again
Was broken by r81905 consolidating background-repeat and background-position into a single background rule, which implied a 'background-image: none' overriding the background-image values set by other rules.
Restored them & added a comment so the next person won't do the same.

Also moved the image files to match the reorg of the css in r95572, which would have broken these images if r81905 hadn't done it first. ;)
2011-11-03 00:13:27 +00:00
Raimond Spekking d512347270 Localisation updates for core and extension messages from translatewiki.net 2011-11-01 21:04:38 +00:00
Raimond Spekking 007ec1faa7 Localisation updates for core and extension messages from translatewiki.net 2011-10-31 20:25:58 +00:00
Raimond Spekking 1bbce368bf Localisation updates for core and extension messages from translatewiki.net 2011-10-30 20:15:17 +00:00
Raimond Spekking 01e7a6fe44 Localisation updates for core and extension messages from translatewiki.net 2011-10-29 19:34:33 +00:00
Siebrand Mazeland c68bcada56 Add space between number and unit. Spotted by Urhixidur. 2011-10-29 11:54:18 +00:00
Raimond Spekking 763d2b9e34 Localisation updates for core and extension messages from translatewiki.net 2011-10-28 19:53:17 +00:00
Raimond Spekking a19333ea0e Localisation updates for core and extension messages from translatewiki.net 2011-10-27 20:00:32 +00:00
Liangent 44f71ac0b7 Normalize newline before exploding by "\n" 2011-10-27 12:50:48 +00:00
Liangent 8ac1b4c619 Newline to <br> replacement should take place after escaping 2011-10-27 12:17:48 +00:00
Raimond Spekking e2c96e6d83 Localisation updates for core and extension messages from translatewiki.net 2011-10-26 19:30:37 +00:00
Sam Reed d808b53fc4 Swap
/*
 *

for

/**
 *
2011-10-26 03:49:06 +00:00
Antoine Musso efecf8b244 (bug 31656) AbuseFilter skips non null edits
That bug is triggering when a user submit an old revision unchanged.
The previous Article->getContent() would fetch the old revision which is
then compared to the user submitted text. Since they are identical, filtering
is skipped entirely.
Any editor can then reinstate an old "bad" revision.

Fix:
* Get latest stored revision to compare user submitted text against. This is
  done by using: Article->getRevision()->getRawText().
* Move caching related calls after that.

Follow up r52740.
Redo r100687 I had reverted.
2011-10-25 12:46:05 +00:00
Antoine Musso c2d03ddd7f revert r100687 2011-10-25 12:12:02 +00:00
Antoine Musso 6cdebb7ac0 (bug 31656) AbuseFilter skips non null edits
This bug is triggering when a user submit an old revision again. AbuseFilter
considered it to be a null edit although the old revision is certainly
a different text than the current one in the database.

This patch make sure we skip filtering only if we will be comparing with the
lastest content.

Follow up r52740
2011-10-25 10:22:18 +00:00
Antoine Musso 5043700b44 Document onEditFilterMerged with hook doc 2011-10-25 09:41:25 +00:00
Raimond Spekking d9f2e91cfe Localisation updates for core and extension messages from translatewiki.net 2011-10-23 19:48:36 +00:00
Raimond Spekking 7af7b80b6e Localisation updates for core and extension messages from translatewiki.net 2011-10-21 20:30:08 +00:00
Victor Vasiliev dd289e2f89 Add comment explaining why we do not need second parameter to preg_quote, per Nikerabbit's comments on r100139 CR. 2011-10-19 18:57:36 +00:00
Victor Vasiliev eca7343487 (part of this commit is in r100135 due to SVN fail)
* (bug 24109) Add regex escaping function to abuse filter

Patch by Jérémie Roquet
2011-10-18 17:57:33 +00:00
Victor Vasiliev 9075e03709 * (bug 24109) Add regex escaping function to abuse filter 2011-10-18 17:54:25 +00:00
Raimond Spekking 4e578cac93 Run some filter IDs through formatNum() for better l10n 2011-10-17 07:56:05 +00:00
Raimond Spekking ae6b121510 Localisation updates for core and extension messages from translatewiki.net 2011-10-16 19:48:07 +00:00
Raimond Spekking acdc3a4444 Localisation updates for core and extension messages from translatewiki.net 2011-10-14 20:06:14 +00:00
Raimond Spekking 2ee4c5431a Localisation updates for core and extension messages from translatewiki.net 2011-10-13 19:52:53 +00:00
Raimond Spekking 7623a665c2 Localisation updates for core and extension messages from translatewiki.net 2011-10-12 20:32:07 +00:00
Raimond Spekking 0e37f6a316 Localisation updates for core and extension messages from translatewiki.net 2011-10-11 19:57:27 +00:00
Raimond Spekking ddd95a248a Localisation updates for core and extension messages from translatewiki.net 2011-10-10 21:36:52 +00:00
Raimond Spekking a4d718a41e Localisation updates for core and extension messages from translatewiki.net 2011-10-09 20:04:54 +00:00
Tim Starling da936e9bfe (bug 31379) Don't use the $errcontext parameter of a PHP error handler to get information for error display, this introduces an unexpected, difficult-to-maintain data flow which leads to bugs like the referenced one above. 2011-10-05 23:31:34 +00:00
Raimond Spekking f440e7e7ad Localisation updates for core and extension messages from translatewiki.net 2011-10-05 19:39:20 +00:00