From: Zoranzoki21 Date: Sun, 18 Mar 2018 12:58:15 +0000 (+0000) Subject: Convert HTTP links to MediaWiki.org to HTTPS X-Git-Tag: 1.31.0-rc.0~198^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=074baa39f5e3abd5b5d59ce497f1825658c71f00 Convert HTTP links to MediaWiki.org to HTTPS Bug: T189687 Change-Id: I846d3a74f617b98c8237f2a8babef85c6c128b14 --- diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index d158b2c678..35e164fd6f 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -2,7 +2,8 @@ "@metadata": { "authors": [ "Anomie", - "Siebrand" + "Siebrand", + "Zoranzoki21" ] }, @@ -789,7 +790,7 @@ "apihelp-query+exturlusage-param-namespace": "The page namespaces to enumerate.", "apihelp-query+exturlusage-param-limit": "How many pages to return.", "apihelp-query+exturlusage-param-expandurl": "Expand protocol-relative URLs with the canonical protocol.", - "apihelp-query+exturlusage-example-simple": "Show pages linking to http://www.mediawiki.org.", + "apihelp-query+exturlusage-example-simple": "Show pages linking to https://www.mediawiki.org.", "apihelp-query+filearchive-summary": "Enumerate all deleted files sequentially.", "apihelp-query+filearchive-param-from": "The image title to start enumerating from.", diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 9903c9efd3..ebb1f26c17 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -217,7 +217,7 @@ class FindHooks extends Maintenance { $retval = []; while ( true ) { $json = Http::get( - wfAppendQuery( 'http://www.mediawiki.org/w/api.php', $params ), + wfAppendQuery( 'https://www.mediawiki.org/w/api.php', $params ), [], __METHOD__ ); diff --git a/tests/phpunit/skins/SideBarTest.php b/tests/phpunit/skins/SideBarTest.php index dceaf418f1..ec85bb0326 100644 --- a/tests/phpunit/skins/SideBarTest.php +++ b/tests/phpunit/skins/SideBarTest.php @@ -104,10 +104,10 @@ class SideBarTest extends MediaWikiLangTestCase { ] ); $this->assertSideBar( [ 'Title' => [ - # ** http://www.mediawiki.org/| Home + # ** https://www.mediawiki.org/| Home [ 'text' => 'Home', - 'href' => 'http://www.mediawiki.org/', + 'href' => 'https://www.mediawiki.org/', 'id' => 'n-Home', 'active' => null, 'rel' => 'nofollow', @@ -116,7 +116,7 @@ class SideBarTest extends MediaWikiLangTestCase { # ... skipped since it is missing a pipe with a description ] ], '* Title -** http://www.mediawiki.org/| Home +** https://www.mediawiki.org/| Home ** http://valid.no.desc.org/ ' ); @@ -160,7 +160,7 @@ class SideBarTest extends MediaWikiLangTestCase { private function getAttribs() { # Sidebar text we will use everytime $text = '* Title -** http://www.mediawiki.org/| Home'; +** https://www.mediawiki.org/| Home'; $bar = []; $this->skin->addToSidebarPlain( $bar, $text );