Added BeforeHttpsRedirect hook allowing extensions to cancel forceHTTPS
authorYuri Astrakhan <yurik@wikimedia.org>
Mon, 12 May 2014 20:05:00 +0000 (16:05 -0400)
committerYuri Astrakhan <yurik@wikimedia.org>
Wed, 28 May 2014 16:46:11 +0000 (12:46 -0400)
commitcf1d36d56b377de30abe3442ddb98d017841e5b8
treec8e7c43531813cf7b3f502f079044e6d1c073d35
parentf0c12765c36f3a562529f1a34736a6f004078241
Added BeforeHttpsRedirect hook allowing extensions to cancel forceHTTPS

For ZERO, we need to be able to avoid forceHTTPS from taking place in
case user logged in while on wifi, and later switched to
zero.wikipedia.org for the carrier who doesn't support HTTPS.
In that case, the extension will need to be able to cancel redirect
and force regular HTTP handling.

Open Question: should this code log off user in case hook returns false?

Bug 65567

Change-Id: If04c83066c5d47b3c04ad7674e3c4e95a4cd464b
RELEASE-NOTES-1.24
docs/hooks.txt
includes/Wiki.php