Remove support for magic_quotes_gpc
authorChad Horohoe <chadh@wikimedia.org>
Wed, 9 Jul 2014 15:36:55 +0000 (08:36 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Wed, 23 Jul 2014 20:38:31 +0000 (20:38 +0000)
commit5a4a33a8ff7241c4b4e12c169195080c1fe417ee
treea5d7855cfff3ec175eb6c543e3b99cc4709dca68
parenta0f0a090c2ff48b223f96714fe0d7f7cb6a38e8b
Remove support for magic_quotes_gpc

This "feature" of PHP has been disabled by default for quite some
time, deprecated in 5.3 and removed entirely in 5.4.

See <http://www.php.net/manual/en/security.magicquotes.php> for
information on why this practice is bad and how to disable it.

For MediaWiki, the removed todo comment says it all. Doing this
messes with all of the super globals and makes embedding MediaWiki
inside another application problematic. It also increases our
memory footprint for every single request even when the data might
not be used.

Finally, it makes it possible to instantiate new WebRequest objects
pretty much whenever you want, so there's no reason for $wgRequest
to exist anymore.

Bug: 11558
Change-Id: I4bc0392276f454ceb966547c7fbd7c8190ebbc7c
RELEASE-NOTES-1.24
includes/WebRequest.php
includes/installer/Installer.php
includes/installer/i18n/en.json
includes/installer/i18n/qqq.json