Go to file
Kunal Mehta 518d26f4a8 Add sanity check test for domains.php
The test verifies:
* domains.php returns an array
* The array has at least 50,000 items (right now it has ~78,000)
* Each domain in the array passes a regex, and the value is either 1 or 0

Bug: T240743
Change-Id: Ic4e2c2e36ddcb0f775f4ac22d1418c814db5b389
2019-12-13 23:09:54 -08:00
.phan Enable phan 2019-07-18 19:33:07 -04:00
i18n Localisation updates from https://translatewiki.net. 2019-12-09 09:36:59 +01:00
includes Fix weird spacing 2018-08-01 21:40:16 -07:00
maintenance Include a last updated date in domains.php 2019-07-18 00:47:08 -04:00
tests Add sanity check test for domains.php 2019-12-13 23:09:54 -08:00
.eslintrc.json Add missing .eslintrc.json to pass npm 2019-02-23 14:46:51 +01:00
.gitignore Initial commit 2018-07-29 19:01:06 -07:00
.gitreview Add .gitreview 2018-07-28 01:34:16 +02:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 18:18:39 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 18:18:39 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.8.0 2019-11-04 19:23:26 +01:00
COPYING Initial commit 2018-07-29 19:01:06 -07:00
domains.php Updating domains.php from Mozilla 2019-12-08 00:00:40 +00:00
extension.json Initial commit 2018-07-29 19:01:06 -07:00
Gruntfile.js Initial commit 2018-07-29 19:01:06 -07:00
package-lock.json build: Updating dependencies 2019-07-15 23:59:33 +00:00
package.json build: Updating npm dependencies for security issues 2019-06-08 21:16:24 +00:00
README Initial commit 2018-07-29 19:01:06 -07:00

SecureLinkFixer

This MediaWiki extension rewrites external links to use the HTTPS protocol
if they are on the HSTS preload list.

While users with modern browsers will automatically use HTTPS, outdated
browsers or non-browser clients will first try visiting HTTP before being
redirected to HTTPS.

This extension is licensed under the GPL v3, or any later version. The HSTS
list included with this extension (domains.php) is licensed under the
Mozilla Public License, v 2.0.

Further reading/motivations:
* https://twitter.com/ajhdock/status/970669975861153792
* https://www.facebook.com/notes/protect-the-graph/upgrades-to-facebooks-link-security/2015650322008442/