# Copyright (C) 2012-2018 Alex Schroeder # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 3 of the License, or (at your option) any later # version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program. If not, see . use strict; use v5.10; AddModuleDescription('banned-regexps.pl', 'Banning Regular Expressions'); =encoding utf8 =head1 Compatibility This extension works with logbannedcontent.pl. =head1 Example content for the BannedRegexps page: # This page lists regular expressions that prevent the saving of a page. # The regexps are matched against any page or comment submitted. # The format is simple: # comments to the end of the line. Empty lines are ignored. # Everything else is a regular expression. If the regular expression is followed by # a comment, this is used as the explanation when a user is denied editing. If the # comment starts with a date, this date is not included in the explanation. # The date could help us decide which regular expressions to delete in the future. # In other words: # ^\s*([^#]+?)\s*(#\s*(\d\d\d\d-\d\d-\d\d\s*)?(.*))?$ # Group 1 is the regular expression to use. # Group 4 is the explanation to use. порно # 2012-12-31 Russian porn