Commit graph

750 commits

Author SHA1 Message Date
Victor Vasiliev 258d340fb5 Abuse filter:
* Introduce := operator for setting variables
* Throw an exception when user tries to override built-in variable
* Fix UTF-8 handling in fnmatch() fallback
* Copy three main abuse filters from enwiki to test suite
* Fix update.php integration
2009-04-05 11:47:42 +00:00
Siebrand Mazeland 85c34395ce Localisation updates for extension messages from translatewiki.net (2009-04-03 19:42 UTC) 2009-04-03 19:55:44 +00:00
Rotem Liss ee71415f9c Localization update for he. 2009-04-03 15:46:19 +00:00
Raimond Spekking 7d1cc76658 Use PLURAL for $3. 2009-04-03 10:59:40 +00:00
Rotem Liss 77666b1ac8 Localization update for he. 2009-04-02 09:12:54 +00:00
Raimond Spekking e18d285364 Localisation updates for extension messages from translatewiki.net (2009-04-01 17:57 UTC) 2009-04-01 18:52:14 +00:00
Alexandre Emsenhuber 9e888117cf svn:eol-style native 2009-04-01 16:36:50 +00:00
Rotem Liss 901a99ad19 Localization update for he. 2009-04-01 12:50:07 +00:00
Andrew Garrett 7c2a7a2fe0 Support for variable setting with the set_var function, and multiple expressions separated by semicolons (;). In evaluation, the result of the LAST expression will be the return value. 2009-04-01 06:53:18 +00:00
Andrew Garrett ba0b30a054 Add syntax error messages for invalid regexes 2009-04-01 05:56:24 +00:00
Andrew Garrett 3f62707206 String manipulation functions substr, str_replace and strpos for AbuseFilter 2009-04-01 05:05:23 +00:00
Andrew Garrett 7c3f048fff Usability work, making abuse filter forms readonly (rather than just lacking a submit button and rejecting submissions) for users without permission. 2009-04-01 04:34:21 +00:00
Andrew Garrett 57d1a0b16e Add timestamp variable 2009-04-01 03:59:58 +00:00
Andrew Garrett 8f0c24ad5b Normalise usernames in abuse log, bug 18286 2009-04-01 03:38:57 +00:00
Rotem Liss 3e3f565472 Localization update for he. 2009-03-31 18:13:57 +00:00
Roan Kattouw 0a47a37762 AbuseFilter: Update API module for r49057 2009-03-31 15:24:51 +00:00
Andrew Garrett 186fc67373 Crackdown on filter evaluation by users unable to modify filters. This is a DoS vector which I thought I'd already plugged. 2009-03-31 15:13:26 +00:00
Andrew Garrett 3a4e318092 Change join on abuse_filter to a LEFT JOIN to fix details view for matches on global filters 2009-03-31 04:00:30 +00:00
Raimond Spekking 9d300aeafb Localisation updates for extension messages from translatewiki.net (2009-03-30 19:55 UTC) 2009-03-30 20:35:14 +00:00
Rotem Liss 17dee862f2 Localization update for he. 2009-03-30 18:17:09 +00:00
Roan Kattouw 09f3306a2d AbuseFilter API modules:
* Use the 'new' way of adding results (adding them one at a time and stopping when addValue() returns false)
* Use intval() on results that are really integers
* Use an implicit join in ApiAbuseLog
* Use dieUsageMsg() for an invalid title
* Move some things up and down in ApiAbuseLog so related things are grouped together
2009-03-30 12:19:41 +00:00
Andrew Garrett 14b850f891 Implementation of global filters, including a major i18n change for abusefilter-log-detailedentry message (rename and split). Needs further testing before deployment 2009-03-30 06:12:12 +00:00
Siebrand Mazeland 05c9882663 Localisation updates for extension messages from translatewiki.net (2009-03-29 22:17 UTC) 2009-03-29 22:26:09 +00:00
Siebrand Mazeland d7d3737eaf Fix typo in 'abusefilter-edit-builder-misc-tern' 2009-03-29 16:07:39 +00:00
Alex Z. 778bf0d363 add option to see IP addresses in list=abuselog if user has 'abusefilter-private' right 2009-03-29 04:29:15 +00:00
Alex Z. 16f22a498e (bug 18063) Add API module to list filter information. 2009-03-29 04:23:20 +00:00
Alex Z. 79360d48a4 add option to search by filter ID to be consistent with UI, and change param descriptions to be less ambiguous 2009-03-29 00:12:40 +00:00
Alex Z. 2e9bd6dd80 (bug 18063) Add API module for abuse log (list=abuselog) 2009-03-28 23:40:27 +00:00
Raimond Spekking a8c47b2a0a Localisation updates for extension messages from translatewiki.net (2009-03-28 21:50 UTC) 2009-03-28 22:26:10 +00:00
Raimond Spekking e94659bba8 Localisation updates for extension messages from translatewiki.net (2009-03-26 19:26 UTC) 2009-03-26 20:31:32 +00:00
Chad Horohoe 1c8574bb1a Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate. 2009-03-26 17:39:49 +00:00
Rotem Liss 9943dfeb9a Fix typo. 2009-03-26 14:30:09 +00:00
Rotem Liss 3cd0f2c5c7 Localization update for he. 2009-03-26 14:21:12 +00:00
Andrew Garrett 9d9c666fea Remove accidentally-committed code in r48856 2009-03-26 04:44:47 +00:00
Andrew Garrett 920f04d4fa Fix batch-testing (follow-up to r48855) 2009-03-26 04:41:05 +00:00
Andrew Garrett 3458bf1a7a (bug 18165) Keep the same parser object between filter runs 2009-03-26 04:09:07 +00:00
Andrew Garrett c597c1915f Add contains_any function, for searching a single haystack for multiple needles. Implemented with FSS with a fallback to a for loop, so it should be really fast. 2009-03-26 02:03:32 +00:00
Andrew Garrett d4d2f4913d Patch by Robert Rohde to prevent empty-string matches of a regex intended to match numbers 2009-03-26 01:30:05 +00:00
Andrew Garrett 20f8b1d16b Properly fix regex munging 2009-03-25 12:43:53 +00:00
Andrew Garrett 1bb05bb402 Fix regex munging by not breaking with regexes with already-escaped /s 2009-03-25 12:15:28 +00:00
Andrew Garrett 5e70316a3a Faster brace short-circuit in Abuse Filter Parser. Patch by Robert Rohde. 2009-03-25 11:48:33 +00:00
Andrew Garrett 86e4081206 Abuse Filter Parser:
* Efficiency -- use /A instead of PREG_OFFSET_CAPTURE and comparing offsets.
* Expand error messages to enhance debugging.
* General code quality
2009-03-25 11:36:38 +00:00
Andrew Garrett fa2ef6a6ca Revert half-done patch from r48802 2009-03-25 10:57:46 +00:00
Andrew Garrett 91d501a4e0 Remove OBSOLETE file for PasswordReset 2009-03-25 10:55:43 +00:00
Andrew Garrett 2000d06c59 Add hook to AFPComputedVariable::compute() so extensions can add lazy-loaded variables. 2009-03-25 05:18:27 +00:00
Andrew Garrett 32c83009e3 Fix examine interface, was broken for a while 2009-03-25 02:53:23 +00:00
Raimond Spekking 8dfd648706 Localisation updates for extension messages from translatewiki.net (2009-03-24 20:05 UTC) 2009-03-24 20:24:05 +00:00
Siebrand Mazeland f95d35be00 Localisation updates for extension messages from translatewiki.net (2009-03-23 18:54 UTC) 2009-03-23 19:15:02 +00:00
Greg Sabino Mullane 1affe9e074 Modified version of patch from Brad Jorsch, updates Postgres schema to match MySQL, bug 18076 2009-03-23 14:18:35 +00:00
Andrew Garrett 173a16f81f Hide the rest of the log view from details, move the diff to above the var dump where it's more useful 2009-03-22 23:33:27 +00:00