Commit graph

1495 commits

Author SHA1 Message Date
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
Andrew Garrett 4a37f1b892 Respond to CR on r96225: use rawParam 2011-10-02 07:06:38 +00:00
John Du Hart 6018d5fc4c Followup r95572, replace insertAtCaret with textSelection per CR 2011-09-30 01:57:00 +00:00
John Du Hart 9c75f9907f Followup r95572, minor tweaks per CR 2011-09-30 00:48:00 +00:00
John Du Hart 4926aeae24 Followup r98490, since the module names changed the variable names need changing as well 2011-09-30 00:05:08 +00:00
John Du Hart 3f06314486 Followup r95572, rename API modules to reduce chance of collisions per CR 2011-09-29 23:30:42 +00:00
Raimond Spekking 44bf75184f Localisation updates for core and extension messages from translatewiki.net 2011-09-29 21:33:17 +00:00
Raimond Spekking 38a5cb1921 Localisation updates for core and extension messages from translatewiki.net 2011-09-27 19:58:34 +00:00
Raimond Spekking 51ab1afb44 Localisation updates for core and extension messages from translatewiki.net 2011-09-26 20:30:18 +00:00
Raimond Spekking 14ec5341de Localisation updates for core and extension messages from translatewiki.net 2011-09-25 19:40:13 +00:00
Raimond Spekking 45e03befdc Localisation updates for core and extension messages from translatewiki.net 2011-09-23 20:09:54 +00:00
Raimond Spekking 30c66bfb80 Localisation updates for core and extension messages from translatewiki.net 2011-09-22 19:48:56 +00:00
Raimond Spekking 8e03dc20ea Localisation updates for core and extension messages from translatewiki.net 2011-09-21 21:30:38 +00:00