Commit graph

23 commits

Author SHA1 Message Date
Siebrand Mazeland fbbdf814d4 (bug 16120) Prevent death on Spam Blacklist trigger using API. Patch by Brad Jorsch.
An API edit attempt with Spam Blacklist firing will now output something instead of crashing:

<?xml version="1.0"?><api><edit spamblacklist="http://blacklistme.example.com"
result="Failure" /></api>
2008-11-02 22:40:02 +00:00
Aaron Schulz 51ebe6aab0 Fix mixed up params 2008-08-16 21:40:30 +00:00
Chad Horohoe 0909094e01 And now SpamBlacklist checks the edit summary field. 2008-06-19 03:14:34 +00:00
Aaron Schulz f6ecf15e42 Fix E_SCRICT errors and pass-by-ref error. Blank pages getting thrown around. 2008-05-14 12:44:34 +00:00
Tim Starling 1dc3f3e263 Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits. 2008-05-06 11:59:58 +00:00
Rotem Liss 3ddce3e21f Avoid warnings about call-time pass-by-reference. 2008-03-14 18:31:28 +00:00
Siebrand Mazeland f97248426a * add svn:keywords 'LastChangedDate'
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00
Bertrand Grondin 36b4a729c7 fix call function error 2008-02-17 19:48:47 +00:00
Bertrand Grondin 5f45250412 Add internationalization extension description message in [[Special:Version]] 2008-02-16 20:47:29 +00:00
Siebrand Mazeland 84c26ca799 revert r28371 to r28375 2007-12-16 18:27:23 +00:00
Siebrand Mazeland 03c931aa7c * complete $wgExtensionCredits
* remove trailing whitespace
2007-12-10 21:33:25 +00:00
Tim Starling 1f195dbc54 * Optimised startup
* Use the new EditFilterMerged hook if available, for faster link finding
* Random bits of code were leaking out of the body file into the loader, poked them back in.
2007-11-12 07:44:17 +00:00
Brion Vibber cc1ddc1162 Break spam blacklist log info out to a sep file 2007-10-03 00:19:36 +00:00
Raimond Spekking 7df7acb6e0 Use $badLines instead of $badList for PLURAL: counting.
count( $badList ) is always 1 as it is a string.
2007-07-24 10:32:37 +00:00
Brion Vibber bde084c272 Some polishing and refactoring on this monstrosity, it's been allowed to grow without some good snipping in a while. :)
* Handle bad regexes more gracefully:
 - The batched regexes are tested for validity, and if one is bad, the lines from that source are broken out line-by-line. This is slower, but the other lines in that source will still be applied correctly.
 - Suppress warnings and be more verbose in the debug log.
 - Check for bad regexes when a local blacklist page is edited, and prompt the user to fix the bad lines.
* Caching issues:
 - Cache the full regexes per-DB instead of per-site; this should be friendlier to shared environments where not every wiki has the same configuration.
 - Hopefully improve the recaching of local pages, which looked like it would preemptively apply the being-edited text to the cache during the filter callback, even though something else might stop the page from being saved. Now just clearing the cache after save is complete, letting it re-load later.
* Split out some of the regex batch functions for clarity.

There are probably still issues with caching of HTTP bits, and in general the local DB loading looks verrrry fragile.
Test this a bit more before syncing. :)
2007-07-20 21:13:26 +00:00
Raimond Spekking 48689b2bca Make the long existing message 'spam-whitelist' available to [[Special:Allmessages]]. 2007-07-04 11:28:52 +00:00
Aryeh Gregor 740736ecd9 Extensions too! 2007-06-29 01:36:09 +00:00
Raimond Spekking 1676db1b55 Update/Add extension credits URLs 2007-06-26 10:38:04 +00:00
Antoine Musso 6aa7b3badc Add descriptions for some extensions used on wikipedia 2007-01-07 13:57:35 +00:00
Antoine Musso c475409997 credits + url 2006-06-23 22:22:09 +00:00
Ævar Arnfjörð Bjarmason ff1e275a8c * Support for $wgExtensionCredits 2005-08-26 14:33:40 +00:00
Tim Starling cd68beb218 More configuration settings, fixed URL 2005-07-08 16:29:22 +00:00
Tim Starling 7b9d0425d5 from phase3/extensions 2004-12-11 09:59:06 +00:00