wiki.techinc.nl/tests/phpunit/includes
Tyler Anthony Romeo 1cc3a57296 Send a cookie with autoblocks to prevent vandalism.
Send a cookie with blocks that have autoblock turned on so that
the user will be identified to MediaWiki and any IP they try
to edit anonymously from will be blocked, even without logging
in to the originally blocked account. Additionally, the block
info is stored in local storage as well as an even stronger
deterrence.

Note: this is meant to deter normal vandals, i.e., not attackers
who know what cookies and local storage are and will be actively
removing the cookie.

This feature is disabled by default, and can be enabled with the
new $wgCookieSetOnAutoblock configuration variable (by setting
it to true);

The cookie will expire at the same time as the block or after
$wgCookieExpiration (whichever is sooner).

Bug: T5233
Bug: T147610
Change-Id: Ic3383af56c555c1592d272490ff4da683b9d7b1b
2016-11-16 10:29:46 -08:00
..
actions
api Merge "Deprecate Message::$format (mostly)" 2016-11-10 18:47:45 +00:00
auth Throttler: improve log message compatibility with Monolog logger 2016-11-15 22:37:04 +00:00
cache
changes Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
composer
config
content Create fields & data for image/file data indexing 2016-09-26 23:42:06 -07:00
context
db Make LBFactoryTest.php pass for sqlite 2016-10-28 22:56:39 -07:00
debug Merge "kafka: Implement ack handling" 2016-06-29 12:18:45 +00:00
deferred Make DeferredUpdates able to run DataUpdates 2016-09-02 04:12:50 +00:00
diff
exception Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
externalstore
filebackend Merge "FSFile and TempFSFile cleanups" 2016-09-20 23:21:30 +00:00
filerepo FSFile and TempFSFile cleanups 2016-09-19 19:55:09 +00:00
GlobalFunctions Use HTTPS instead of HTTP for ietf.org URLs 2016-09-28 18:05:53 +02:00
htmlform Add HTMLFormField class for MWRestrictions and use it for bot passwords 2016-09-22 20:50:36 +00:00
import
installer Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
interwiki Introduce InterwikiLookupAdapter on top of SiteLookup 2016-10-18 10:18:31 +00:00
jobqueue
json Remove spaces after cast operators 2016-10-31 13:57:39 +00:00
libs CSSMin: Correctly avoid fallbacks when embedding SVG files 2016-11-02 10:26:21 +01:00
linker Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
logging bidi-isolate usernames in Linker::userLink 2016-08-31 17:44:06 -07:00
mail
media Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
objectcache objectcache: Disable RedisBagOStuff constructor in unit test 2016-07-25 16:55:36 +01:00
page Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
pager Partially reverting I8e684f06 to restore some legacy behavior 2016-09-13 18:32:47 -07:00
parser Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
password
poolcounter
registration Added array_replace_recursive merge strategy 2016-10-24 19:20:04 +00:00
resourceloader Add caching to ResourceLoaderWikiModule::preloadTitleInfo() 2016-10-20 20:54:11 +00:00
search Add SearchEngineFactory::getSearchEngineClass() instead of using the DB 2016-09-15 21:31:35 -07:00
Services
session Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
site Mock Http in MediaWikiPageNameNormalizerTest and add more test cases 2016-06-24 18:49:25 +00:00
skins SkinTemplateTest typofix 2016-08-11 13:54:05 -07:00
specialpage Merge "Revert "Don't construct SpecialPages twice"" 2016-11-10 06:00:17 +00:00
specials Merge "Update weblinks in comments from HTTP to HTTPS" 2016-11-08 21:32:00 +00:00
tidy Merge "Enable additional balancer tests (those starting with <!DOCTYPE html>)" 2016-07-21 17:27:59 +00:00
title Use more short array syntax in comments (/tests/) 2016-07-10 17:23:29 +02:00
upload Merge "Update weblinks in comments from HTTP to HTTPS" 2016-11-08 21:32:00 +00:00
user Send a cookie with autoblocks to prevent vandalism. 2016-11-16 10:29:46 -08:00
utils Remove spaces after cast operators 2016-10-31 13:57:39 +00:00
BlockTest.php
CollationTest.php
DiffHistoryBlobTest.php
EditPageTest.php Make DeferredUpdates able to run DataUpdates 2016-09-02 04:12:50 +00:00
ExportTest.php DumpStringOutput: Rename getOutput() to __toString() 2016-07-14 06:28:16 -04:00
ExtraParserTest.php
FauxRequestTest.php Clean up tests for FauxRequest/WebRequest 2016-09-09 15:35:19 -07:00
FauxResponseTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php SpecialActiveUsers: Change checkboxes to dropdown 2016-11-02 12:21:26 +00:00
GitInfoTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
HooksTest.php
HtmlTest.php Merge "Update weblinks in comments from HTTP to HTTPS" 2016-11-08 21:32:00 +00:00
HttpTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
LicensesTest.php
LinkerTest.php bidi-isolate usernames in Linker::userLink 2016-08-31 17:44:06 -07:00
LinkFilterTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
MediaWikiServicesTest.php Merge "Add Parser to MediaWikiServices" 2016-10-28 17:53:30 +00:00
MediaWikiTest.php Revert "MediaWiki.php: Redirect non-standard title urls to canonical" 2016-09-09 21:45:27 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php
MessageTest.php More robust, cleaned up MessageTest 2016-11-11 16:48:14 +00:00
MovePageTest.php
MWNamespaceTest.php Use more short array syntax in comments (/tests/) 2016-07-10 17:23:29 +02:00
MWTimestampTest.php Split out ConvertableTimestamp class 2016-09-16 03:00:09 +00:00
OutputPageTest.php resourceloader: Move queue formatting out of OutputPage 2016-08-08 12:23:09 -07:00
PagePropsTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
PathRouterTest.php
PreferencesTest.php
PrefixSearchTest.php PrefixSearch: Implement searching in multiple namespaces 2016-09-15 14:48:35 +02:00
RevisionStorageTest.php Revert "If rev_content_model is null, use page_content_model." 2016-07-10 22:58:36 +00:00
RevisionStorageTestContentHandlerUseDB.php
RevisionTest.php
SampleTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
SanitizerTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
SanitizerValidateEmailTest.php
SiteConfigurationTest.php
StatusTest.php tests: Fix invalid @covers value in StatusTest.php 2016-09-22 18:29:28 +01:00
TemplateCategoriesTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
TemplateParserTest.php
TestingAccessWrapper.php
TestingAccessWrapperTest.php
TestLogger.php
TestUser.php
TestUserRegistry.php
TimeAdjustTest.php
TitleArrayFromResultTest.php
TitleMethodsTest.php
TitlePermissionTest.php
TitleTest.php mw.Title: Correct handling of Unicode whitespace and bidi control characters 2016-08-31 00:04:29 +00:00
WatchedItemIntegrationTest.php Merge "Remove missed WatchedItem::resetNotificationTimestamp in test" 2016-07-28 10:22:59 +00:00
WatchedItemQueryServiceUnitTest.php Add hooks for WatchedItemQueryService / ApiQueryWatchlist 2016-11-03 11:41:40 +00:00
WatchedItemStoreIntegrationTest.php
WatchedItemStoreUnitTest.php Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
WatchedItemUnitTest.php Remove unused deprecated WatchedItem methods 2016-07-26 10:52:31 +00:00
WebRequestTest.php Move IP::isConfigured/TrustedProxy() to ProxyLookup service 2016-09-21 20:02:09 -07:00
WikiMapTest.php Improve WikiMap::getWikiReferenceFromWgConf() 2016-07-06 14:20:07 -04:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php Update weblinks in comments from HTTP to HTTPS 2016-10-11 17:25:10 +00:00
XmlTest.php