Commit Graph

11 Commits

Author SHA1 Message Date
Alex Schroeder
3ea87c007d The parameter days must be numeric 2015-08-31 11:04:22 +02:00
Aleks-Daniel Jakimenko
c4671a8909 Removing clear_pages() from the beginning of tests (part 1)
This script was used:
perl -0pi -e 's/(use Test[^\n]+)\n+clear_pages\(\);[^\n]*\n+/$1\n\n/' *.t
2015-07-05 03:28:46 +03:00
Alex Schroeder
d922b7413c RcHtml: fix generating More... links
When using days for RecentChanges, the More... links after the first
one reverted to $RcDefault instead of keeping the same time period.
This is now fixed.
2014-08-03 01:01:42 +02:00
Alex Schroeder
d919dd5d94 rc.t: Add test for More... links 2014-08-03 00:50:42 +02:00
Alex Schroeder
1c25325257 Anonymizing older entries in the list of recent changes.
When the maintenance action runs, it copies all the older entries in
rc.log to oldrc.log. Older entries are the entries that will usually
not get used by a typical display of recent changes. Any entry older
than the largest value of @RcDays is moved to oldrc.log (defaults to
90 days).

The idea is that you would only need hostnames or IP numbers to fight
spam and vandalism: Add regular expressions matching either hostname
or IP number of spammers or vandals to $BannedHosts and prevent the
attack from continuing. After a few days, however, this information is
no longer required. In this day and age of privacy invasion, I think
software should take a pro-active stance and therefore the entries
moved to oldrc.log will have their hostname or IP number replaced by
"Anonymous".

The existing entries in oldrc.log are not changed. If you want to do
the right thing, there's a script called anonymize.pl in the contrib
directory.
2013-11-30 23:56:10 +01:00
Alex Schroeder
d32c104133 Test for bug that prevented the oldrc.log file from being read if
rc.log was missing or empty.
2009-07-03 09:26:05 +00:00
Alex Schroeder
d1ffa93e88 Test whether all=1 really works. 2008-09-19 23:51:02 +00:00
Alex Schroeder
c0ca1faed7 A test against newlines in usernames added. 2007-10-15 09:20:23 +00:00
Alex Schroeder
2cca722bb1 Test for empty rc.log files. 2007-06-20 14:02:58 +00:00
Alex Schroeder
558af917a1 Added license. 2006-09-20 00:11:31 +00:00
Alex Schroeder
b164e0f874 Moved here from ../test.pl 2006-09-19 23:18:34 +00:00