From 202f695f671bb1b6c25ebec219da348e9935692e Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 13 Oct 2016 07:34:26 +0200 Subject: [PATCH] Update weblinks in comments from HTTP to HTTPS Use HTTPS instead of HTTP where the HTTP link is a redirect to the HTTPS link. Also update some defect links. Change-Id: Ic3a5eac910d098ed5c2a21e9f47c9b6ee06b2643 --- includes/AjaxResponse.php | 2 +- includes/DefaultSettings.php | 32 +++++++++---------- includes/FormOptions.php | 2 +- includes/GlobalFunctions.php | 14 ++++---- includes/Html.php | 28 ++++++++-------- includes/MediaWikiServices.php | 2 +- includes/OutputPage.php | 6 ++-- includes/Sanitizer.php | 30 ++++++++--------- includes/WebRequest.php | 6 ++-- includes/WebRequestUpload.php | 2 +- includes/api/ApiMain.php | 6 ++-- includes/api/ApiRsd.php | 2 +- includes/cache/localisation/LCStoreCDB.php | 2 +- includes/db/DatabaseMssql.php | 2 +- includes/export/XmlDumpWriter.php | 2 +- .../lockmanager/MySqlLockManager.php | 2 +- includes/htmlform/fields/HTMLFloatField.php | 2 +- includes/htmlform/fields/HTMLHiddenField.php | 2 +- includes/htmlform/fields/HTMLIntField.php | 2 +- includes/installer/MssqlInstaller.php | 2 +- includes/installer/PhpBugTests.php | 2 +- includes/jobqueue/JobQueueDB.php | 4 +-- includes/jobqueue/JobRunner.php | 2 +- includes/libs/MultiHttpClient.php | 2 +- includes/libs/Timing.php | 4 +-- includes/libs/filebackend/FileBackend.php | 2 +- .../libs/filebackend/SwiftFileBackend.php | 4 +-- includes/libs/jsminplus.php | 8 ++--- includes/libs/mime/MimeAnalyzer.php | 2 +- includes/libs/rdbms/database/Database.php | 2 +- .../libs/rdbms/database/DatabaseMysqlBase.php | 12 +++---- .../libs/rdbms/database/DatabasePostgres.php | 2 +- .../libs/rdbms/database/DatabaseSqlite.php | 2 +- includes/libs/rdbms/database/IDatabase.php | 16 +++++----- .../database/position/MySQLMasterPos.php | 4 +-- includes/libs/rdbms/lbfactory/LBFactory.php | 2 +- .../libs/rdbms/loadbalancer/LoadBalancer.php | 2 +- .../rdbms/loadmonitor/LoadMonitorMySQL.php | 2 +- includes/libs/time/ConvertibleTimestamp.php | 2 +- includes/mail/UserMailer.php | 2 +- includes/media/DjVuImage.php | 2 +- includes/media/MediaHandler.php | 2 +- includes/media/PNGMetadataExtractor.php | 4 +-- includes/media/SVGMetadataExtractor.php | 4 +-- includes/media/XCF.php | 2 +- includes/page/WikiPage.php | 2 +- includes/pager/TablePager.php | 2 +- includes/parser/Parser.php | 2 +- includes/resourceloader/ResourceLoader.php | 10 +++--- includes/specials/SpecialUploadStash.php | 2 +- includes/tidy/RaggettInternalPHP.php | 2 +- includes/user/User.php | 2 +- includes/utils/UIDGenerator.php | 6 ++-- maintenance/archives/patch-img_media_type.sql | 4 +-- maintenance/dev/includes/router.php | 2 +- maintenance/findHooks.php | 2 +- maintenance/jsduck/external.js | 2 +- maintenance/language/digit2html.php | 2 +- maintenance/mssql/tables.sql | 4 +-- maintenance/mwdoc-filter.php | 4 +-- maintenance/rebuildLocalisationCache.php | 2 +- .../sqlite/archives/searchindex-fts3.sql | 4 +-- maintenance/tables.sql | 4 +-- resources/src/jquery/jquery.accessKeyLabel.js | 2 +- resources/src/jquery/jquery.byteLimit.js | 4 +-- resources/src/mediawiki.legacy/oldshared.css | 2 +- resources/src/mediawiki.skinning/content.css | 2 +- resources/src/mediawiki/mediawiki.js | 2 +- resources/src/polyfill-nodeTypes.js | 2 +- tests/parser/parserTests.txt | 16 +++++----- tests/phpunit/includes/HtmlTest.php | 2 +- tests/phpunit/includes/HttpTest.php | 2 +- tests/phpunit/includes/SampleTest.php | 10 +++--- tests/phpunit/includes/SanitizerTest.php | 6 ++-- .../installer/DatabaseUpdaterTest.php | 14 ++++---- .../specials/QueryAllSpecialPagesTest.php | 4 +-- .../includes/upload/UploadBaseTest.php | 2 +- .../suites/ParserTestTopLevelSuite.php | 2 +- 78 files changed, 185 insertions(+), 185 deletions(-) diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 4fe46dd1af..0686578c17 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -161,7 +161,7 @@ class AjaxResponse { // For back-compat, it is supported that mResponseCode be a string like " 200 OK" // (with leading space and the status message after). Cast response code to an integer // to take advantage of PHP's conversion rules which will turn " 200 OK" into 200. - // http://php.net/string#language.types.string.conversion + // https://secure.php.net/manual/en/language.types.string.php#language.types.string.conversion $n = intval( trim( $this->mResponseCode ) ); HttpStatus::header( $n ); } diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 2ae33b2584..7cdd7c317d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -311,7 +311,7 @@ $wgAppleTouchIcon = false; * Value for the referrer policy meta tag. * One of 'never', 'default', 'origin', 'always'. Setting it to false just * prevents the meta tag from being output. - * See http://www.w3.org/TR/referrer-policy/ for details. + * See https://www.w3.org/TR/referrer-policy/ for details. * * @since 1.25 */ @@ -658,7 +658,7 @@ $wgLockManagers = []; /** * Show Exif data, on by default if available. - * Requires PHP's Exif extension: http://www.php.net/manual/en/ref.exif.php + * Requires PHP's Exif extension: https://secure.php.net/manual/en/ref.exif.php * * @note FOR WINDOWS USERS: * To enable Exif functions, add the following line to the "Windows @@ -1511,7 +1511,7 @@ $wgDjvuTxt = null; * For now we recommend you use djvudump instead. The djvuxml output is * probably more stable, so we'll switch back to it as soon as they fix * the efficiency problem. - * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583 + * https://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583 * * @par Example: * @code @@ -1973,7 +1973,7 @@ $wgDBerrorLog = false; * Defaults to the wiki timezone ($wgLocaltimezone). * * A list of usable timezones can found at: - * http://php.net/manual/en/timezones.php + * https://secure.php.net/manual/en/timezones.php * * @par Examples: * @code @@ -3110,7 +3110,7 @@ $wgForceUIMsgAsContentMsg = []; * timezone-nameinlowercase like timezone-utc. * * A list of usable timezones can found at: - * http://php.net/manual/en/timezones.php + * https://secure.php.net/manual/en/timezones.php * * @par Examples: * @code @@ -3178,7 +3178,7 @@ $wgHtml5 = true; * * If your wiki uses RDFa, set it to the correct value for RDFa+HTML5. * Correct current values are 'HTML+RDFa 1.0' or 'XHTML+RDFa 1.0'. - * See also http://www.w3.org/TR/rdfa-in-html/#document-conformance + * See also https://www.w3.org/TR/rdfa-in-html/#document-conformance * @since 1.16 */ $wgHtml5Version = null; @@ -4216,7 +4216,7 @@ $wgAllowImageTag = false; /** * Configuration for HTML postprocessing tool. Set this to a configuration * array to enable an external tool. Dave Raggett's "HTML Tidy" is typically - * used. See http://www.w3.org/People/Raggett/tidy/ + * used. See https://www.w3.org/People/Raggett/tidy/ * * If this is null and $wgUseTidy is true, the deprecated configuration * parameters will be used instead. @@ -6372,9 +6372,9 @@ $wgDisableInternalSearch = false; * To forward to Google you'd have something like: * @code * $wgSearchForwardUrl = - * 'http://www.google.com/search?q=$1' . - * '&domains=http://example.com' . - * '&sitesearch=http://example.com' . + * 'https://www.google.com/search?q=$1' . + * '&domains=https://example.com' . + * '&sitesearch=https://example.com' . * '&ie=utf-8&oe=utf-8'; * @endcode */ @@ -6707,9 +6707,9 @@ $wgFeedDiffCutoff = 32768; * Should be a format as key (either 'rss' or 'atom') and an URL to the feed * as value. * @par Example: - * Configure the 'atom' feed to http://example.com/somefeed.xml + * Configure the 'atom' feed to https://example.com/somefeed.xml * @code - * $wgSiteFeed['atom'] = "http://example.com/somefeed.xml"; + * $wgSiteFeed['atom'] = "https://example.com/somefeed.xml"; * @endcode */ $wgOverrideSiteFeed = []; @@ -7118,7 +7118,7 @@ $wgAutoloadAttemptLowercase = true; * 'Foo Barstein', * ], * 'version' => '1.9.0', - * 'url' => 'http://example.org/example-extension/', + * 'url' => 'https://example.org/example-extension/', * 'descriptionmsg' => 'exampleextension-desc', * 'license-name' => 'GPL-2.0+', * ]; @@ -7145,7 +7145,7 @@ $wgAutoloadAttemptLowercase = true; * - author: A string or an array of strings. Authors can be linked using * the regular wikitext link syntax. To have an internationalized version of * "and others" show, add an element "...". This element can also be linked, - * for instance "[http://example ...]". + * for instance "[https://example ...]". * * - descriptionmsg: A message key or an an array with message key and parameters: * `'descriptionmsg' => 'exampleextension-desc',` @@ -7363,7 +7363,7 @@ $wgCategoryPagingLimit = 200; * all languages in a mediocre way. However, it is better than "uppercase". * * To use the uca-default collation, you must have PHP's intl extension - * installed. See http://php.net/manual/en/intl.setup.php . The details of the + * installed. See https://secure.php.net/manual/en/intl.setup.php . The details of the * resulting collation will depend on the version of ICU installed on the * server. * @@ -8032,7 +8032,7 @@ $wgShellCgroup = false; $wgPhpCli = '/usr/bin/php'; /** - * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132 + * Locale for LC_CTYPE, to work around https://bugs.php.net/bug.php?id=45132 * For Unix-like operating systems, set this to to a locale that has a UTF-8 * character set. Only the character set is relevant. */ diff --git a/includes/FormOptions.php b/includes/FormOptions.php index 5e5e8d4011..6706db7e53 100644 --- a/includes/FormOptions.php +++ b/includes/FormOptions.php @@ -370,7 +370,7 @@ class FormOptions implements ArrayAccess { /** @name ArrayAccess functions * These functions implement the ArrayAccess PHP interface. - * @see http://php.net/manual/en/class.arrayaccess.php + * @see https://secure.php.net/manual/en/class.arrayaccess.php */ /* @{ */ /** diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 2b6088edeb..ec097029eb 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -40,7 +40,7 @@ use Wikimedia\ScopedCallback; */ // hash_equals function only exists in PHP >= 5.6.0 -// http://php.net/hash_equals +// https://secure.php.net/hash_equals if ( !function_exists( 'hash_equals' ) ) { /** * Check whether a user-provided string is equal to a fixed-length secret string @@ -2134,7 +2134,7 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) { */ function wfRecursiveRemoveDir( $dir ) { wfDebug( __FUNCTION__ . "( $dir )\n" ); - // taken from http://de3.php.net/manual/en/function.rmdir.php#98622 + // taken from https://secure.php.net/manual/en/function.rmdir.php#98622 if ( is_dir( $dir ) ) { $objects = scandir( $dir ); foreach ( $objects as $object ) { @@ -2227,8 +2227,8 @@ function wfEscapeShellArg( /*...*/ ) { // Escaping for an MSVC-style command line parser and CMD.EXE // @codingStandardsIgnoreStart For long URLs // Refs: - // * http://web.archive.org/web/20020708081031/http://mailman.lyra.org/pipermail/scite-interest/2002-March/000436.html - // * http://technet.microsoft.com/en-us/library/cc723564.aspx + // * https://web.archive.org/web/20020708081031/http://mailman.lyra.org/pipermail/scite-interest/2002-March/000436.html + // * https://technet.microsoft.com/en-us/library/cc723564.aspx // * T15518 // * CR r63214 // Double the backslashes before any double quotes. Escape the double quotes. @@ -2328,7 +2328,7 @@ function wfShellExec( $cmd, &$retval = null, $environ = [], if ( wfIsWindows() ) { /* Surrounding a set in quotes (method used by wfEscapeShellArg) makes the quotes themselves * appear in the environment variable, so we must use carat escaping as documented in - * http://technet.microsoft.com/en-us/library/cc723564.aspx + * https://technet.microsoft.com/en-us/library/cc723564.aspx * Note however that the quote isn't listed there, but is needed, and the parentheses * are listed there but doesn't appear to need it. */ @@ -2546,7 +2546,7 @@ function wfShellExecWithStderr( $cmd, &$retval = null, $environ = [], $limits = } /** - * Workaround for http://bugs.php.net/bug.php?id=45132 + * Workaround for https://bugs.php.net/bug.php?id=45132 * escapeshellarg() destroys non-ASCII characters if LANG is not a UTF-8 locale */ function wfInitShellLocale() { @@ -2798,7 +2798,7 @@ function wfUseMW( $req_ver ) { /** * Return the final portion of a pathname. * Reimplemented because PHP5's "basename()" is buggy with multibyte text. - * http://bugs.php.net/bug.php?id=33898 + * https://bugs.php.net/bug.php?id=33898 * * PHP's basename() only considers '\' a pathchar on Windows and Netware. * We'll consider it so always, as we don't want '\s' in our Unix paths either. diff --git a/includes/Html.php b/includes/Html.php index 48b30c7802..0b6b6556ac 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -3,7 +3,7 @@ * Collection of methods to generate HTML content * * Copyright © 2009 Aryeh Gregor - * http://www.mediawiki.org/ + * https://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -156,10 +156,10 @@ class Html { * @param string $contents The raw HTML contents of the element: *not* * escaped! * @param array $attrs Associative array of attributes, e.g., [ - * 'href' => 'http://www.mediawiki.org/' ]. See expandAttributes() for + * 'href' => 'https://www.mediawiki.org/' ]. See expandAttributes() for * further documentation. * @param string[] $modifiers classes to add to the button - * @see http://tools.wmflabs.org/styleguide/desktop/index.html for guidance on available modifiers + * @see https://tools.wmflabs.org/styleguide/desktop/index.html for guidance on available modifiers * @return string Raw HTML */ public static function linkButton( $contents, array $attrs, array $modifiers = [] ) { @@ -176,10 +176,10 @@ class Html { * @param string $contents The raw HTML contents of the element: *not* * escaped! * @param array $attrs Associative array of attributes, e.g., [ - * 'href' => 'http://www.mediawiki.org/' ]. See expandAttributes() for + * 'href' => 'https://www.mediawiki.org/' ]. See expandAttributes() for * further documentation. * @param string[] $modifiers classes to add to the button - * @see http://tools.wmflabs.org/styleguide/desktop/index.html for guidance on available modifiers + * @see https://tools.wmflabs.org/styleguide/desktop/index.html for guidance on available modifiers * @return string Raw HTML */ public static function submitButton( $contents, array $attrs, array $modifiers = [] ) { @@ -200,7 +200,7 @@ class Html { * * @param string $element The element's name, e.g., 'a' * @param array $attribs Associative array of attributes, e.g., [ - * 'href' => 'http://www.mediawiki.org/' ]. See expandAttributes() for + * 'href' => 'https://www.mediawiki.org/' ]. See expandAttributes() for * further documentation. * @param string $contents The raw HTML contents of the element: *not* * escaped! @@ -321,7 +321,7 @@ class Html { * * @param string $element Name of the element, e.g., 'a' * @param array $attribs Associative array of attributes, e.g., [ - * 'href' => 'http://www.mediawiki.org/' ]. See expandAttributes() for + * 'href' => 'https://www.mediawiki.org/' ]. See expandAttributes() for * further documentation. * @return array An array of attributes functionally identical to $attribs */ @@ -431,8 +431,8 @@ class Html { /** * Given an associative array of element attributes, generate a string * to stick after the element name in HTML output. Like [ 'href' => - * 'http://www.mediawiki.org/' ] becomes something like - * ' href="http://www.mediawiki.org"'. Again, this is like + * 'https://www.mediawiki.org/' ] becomes something like + * ' href="https://www.mediawiki.org"'. Again, this is like * Xml::expandAttributes(), but it implements some HTML-specific logic. * * Attributes that can contain space-separated lists ('class', 'accesskey' and 'rel') array @@ -458,7 +458,7 @@ class Html { * @endcode * * @param array $attribs Associative array of attributes, e.g., [ - * 'href' => 'http://www.mediawiki.org/' ]. Values will be HTML-escaped. + * 'href' => 'https://www.mediawiki.org/' ]. Values will be HTML-escaped. * A value of false means to omit the attribute. For boolean attributes, * you can omit the key, e.g., [ 'checked' ] instead of * [ 'checked' => 'checked' ] or such. @@ -501,8 +501,8 @@ class Html { continue; } - // http://www.w3.org/TR/html401/index/attributes.html ("space-separated") - // http://www.w3.org/TR/html5/index.html#attributes-1 ("space-separated") + // https://www.w3.org/TR/html401/index/attributes.html ("space-separated") + // https://www.w3.org/TR/html5/index.html#attributes-1 ("space-separated") $spaceSeparatedListAttributes = [ 'class', // html4, html5 'accesskey', // as of html5, multiple space-separated values allowed @@ -956,7 +956,7 @@ class Html { * @return bool */ public static function isXmlMimeType( $mimetype ) { - # http://www.whatwg.org/html/infrastructure.html#xml-mime-type + # https://html.spec.whatwg.org/multipage/infrastructure.html#xml-mime-type # * text/xml # * application/xml # * Any MIME type with a subtype ending in +xml (this implicitly includes application/xhtml+xml) @@ -1005,7 +1005,7 @@ class Html { * * @note srcset width and height values are not supported. * - * @see http://www.whatwg.org/html/embedded-content-1.html#attr-img-srcset + * @see https://html.spec.whatwg.org/#attr-img-srcset * * @par Example: * @code diff --git a/includes/MediaWikiServices.php b/includes/MediaWikiServices.php index 7f94ced2c9..4e80ba1c08 100644 --- a/includes/MediaWikiServices.php +++ b/includes/MediaWikiServices.php @@ -296,7 +296,7 @@ class MediaWikiServices extends ServiceContainer { self::resetGlobalInstance(); // Child, reseed because there is no bug in PHP: - // http://bugs.php.net/bug.php?id=42465 + // https://bugs.php.net/bug.php?id=42465 mt_srand( getmypid() ); } diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a69c0e6692..4d8f836836 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2773,8 +2773,8 @@ class OutputPage extends ContextSource { // The spec recommends defining XHTML5's charset using the XML declaration // instead of meta. // Our XML declaration is output by Html::htmlHeader. - // http://www.whatwg.org/html/semantics.html#attr-meta-http-equiv-content-type - // http://www.whatwg.org/html/semantics.html#charset + // https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-type + // https://html.spec.whatwg.org/multipage/semantics.html#charset $pieces[] = Html::element( 'meta', [ 'charset' => 'UTF-8' ] ); } @@ -3656,7 +3656,7 @@ class OutputPage extends ContextSource { public static function transformCssMedia( $media ) { global $wgRequest; - // http://www.w3.org/TR/css3-mediaqueries/#syntax + // https://www.w3.org/TR/css3-mediaqueries/#syntax $screenMediaQueryRegex = '/^(?:only\s+)?screen\b/i'; // Switch in on-screen display for media testing diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 4069658376..44e4e3eb91 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -41,7 +41,7 @@ class Sanitizer { /** * Acceptable tag name charset from HTML5 parsing spec - * http://www.w3.org/TR/html5/syntax.html#tag-open-state + * https://www.w3.org/TR/html5/syntax.html#tag-open-state */ const ELEMENT_BITS_REGEX = '!^(/?)([A-Za-z][^\t\n\v />\0]*+)([^>]*?)(/?>)([^<]*)$!'; @@ -58,7 +58,7 @@ class Sanitizer { /** * List of all named character entities defined in HTML 4.01 - * http://www.w3.org/TR/html4/sgml/entities.html + * https://www.w3.org/TR/html4/sgml/entities.html * As well as ' which is only defined starting in XHTML1. */ private static $htmlEntities = [ @@ -333,7 +333,7 @@ class Sanitizer { /** * Regular expression to match HTML/XML attribute pairs within a tag. * Allows some... latitude. Based on, - * http://www.w3.org/TR/html5/syntax.html#before-attribute-value-state + * https://www.w3.org/TR/html5/syntax.html#before-attribute-value-state * Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes * @return string */ @@ -1149,11 +1149,11 @@ class Sanitizer { * ambiguous if it's part of something that looks like a percent escape * (which don't work reliably in fragments cross-browser). * - * @see http://www.w3.org/TR/html401/types.html#type-name Valid characters + * @see https://www.w3.org/TR/html401/types.html#type-name Valid characters * in the id and name attributes - * @see http://www.w3.org/TR/html401/struct/links.html#h-12.2.3 Anchors with + * @see https://www.w3.org/TR/html401/struct/links.html#h-12.2.3 Anchors with * the id attribute - * @see http://www.whatwg.org/html/elements.html#the-id-attribute + * @see https://www.w3.org/TR/html5/dom.html#the-id-attribute * HTML5 definition of id attribute * * @param string $id Id to escape @@ -1239,7 +1239,7 @@ class Sanitizer { * * @todo For extra validity, input should be validated UTF-8. * - * @see http://www.w3.org/TR/CSS21/syndata.html Valid characters/format + * @see https://www.w3.org/TR/CSS21/syndata.html Valid characters/format * * @param string $class * @return string @@ -1352,7 +1352,7 @@ class Sanitizer { } elseif ( !isset( $set[2] ) ) { # In XHTML, attributes must have a value so return an empty string. # See "Empty attribute syntax", - # http://www.w3.org/TR/html5/syntax.html#syntax-attribute-name + # https://www.w3.org/TR/html5/syntax.html#syntax-attribute-name return ""; } else { throw new MWException( "Tag conditions not met. This should never happen and is a bug." ); @@ -1622,7 +1622,7 @@ class Sanitizer { # RDFa # These attributes are specified in section 9 of - # http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014 + # https://www.w3.org/TR/2008/REC-rdfa-syntax-20081014 'about', 'property', 'resource', @@ -1630,7 +1630,7 @@ class Sanitizer { 'typeof', # Microdata. These are specified by - # http://www.whatwg.org/html/microdata.html#the-microdata-model + # https://html.spec.whatwg.org/multipage/microdata.html#the-microdata-model 'itemid', 'itemprop', 'itemref', @@ -1654,7 +1654,7 @@ class Sanitizer { ]; # Numbers refer to sections in HTML 4.01 standard describing the element. - # See: http://www.w3.org/TR/html4/ + # See: https://www.w3.org/TR/html4/ $whitelist = [ # 7.5.4 'div' => $block, @@ -1701,7 +1701,7 @@ class Sanitizer { # 9.3.2 'br' => array_merge( $common, [ 'clear' ] ), - # http://www.whatwg.org/html/text-level-semantics.html#the-wbr-element + # https://www.w3.org/TR/html5/text-level-semantics.html#the-wbr-element 'wbr' => $common, # 9.3.4 @@ -1776,7 +1776,7 @@ class Sanitizer { 'hr' => array_merge( $common, [ 'width' ] ), # HTML Ruby annotation text module, simple ruby only. - # http://www.whatwg.org/html/text-level-semantics.html#the-ruby-element + # https://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element 'ruby' => $common, # rbc 'rb' => $common, @@ -1786,14 +1786,14 @@ class Sanitizer { # MathML root element, where used for extensions # 'title' may not be 100% valid here; it's XHTML - # http://www.w3.org/TR/REC-MathML/ + # https://www.w3.org/TR/REC-MathML/ 'math' => [ 'class', 'style', 'id', 'title' ], # HTML 5 section 4.6 'bdi' => $common, # HTML5 elements, defined by: - # http://www.whatwg.org/html/ + # https://html.spec.whatwg.org/multipage/semantics.html#the-data-element 'data' => array_merge( $common, [ 'value' ] ), 'time' => array_merge( $common, [ 'datetime' ] ), 'mark' => $common, diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 0065135ae0..3ef3bc1e0b 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -113,7 +113,7 @@ class WebRequest { */ public static function getPathInfo( $want = 'all' ) { global $wgUsePathInfo; - // PATH_INFO is mangled due to http://bugs.php.net/bug.php?id=31892 + // PATH_INFO is mangled due to https://bugs.php.net/bug.php?id=31892 // And also by Apache 2.x, double slashes are converted to single slashes. // So we will use REQUEST_URI if possible. $matches = []; @@ -175,7 +175,7 @@ class WebRequest { } elseif ( $wgUsePathInfo ) { if ( isset( $_SERVER['ORIG_PATH_INFO'] ) && $_SERVER['ORIG_PATH_INFO'] != '' ) { // Mangled PATH_INFO - // http://bugs.php.net/bug.php?id=31892 + // https://bugs.php.net/bug.php?id=31892 // Also reported when ini_get('cgi.fix_pathinfo')==false $matches['title'] = substr( $_SERVER['ORIG_PATH_INFO'], 1 ); @@ -379,7 +379,7 @@ class WebRequest { */ private function getGPCVal( $arr, $name, $default ) { # PHP is so nice to not touch input data, except sometimes: - # http://us2.php.net/variables.external#language.variables.external.dot-in-names + # https://secure.php.net/variables.external#language.variables.external.dot-in-names # Work around PHP *feature* to avoid *bugs* elsewhere. $name = strtr( $name, '.', '_' ); if ( isset( $arr[$name] ) ) { diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index c741907d3e..916a10c9f0 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -102,7 +102,7 @@ class WebRequestUpload { /** * Return the upload error. See link for explanation - * http://www.php.net/manual/en/features.file-upload.errors.php + * https://secure.php.net/manual/en/features.file-upload.errors.php * * @return int One of the UPLOAD_ constants, 0 if non-existent */ diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index c8f4460e9f..80d9ceb350 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -636,8 +636,8 @@ class ApiMain extends ApiBase { * If the parameter and the header do match, the header is checked against $wgCrossSiteAJAXdomains * and $wgCrossSiteAJAXdomainExceptions, and if the origin qualifies, the appropriate CORS * headers are set. - * http://www.w3.org/TR/cors/#resource-requests - * http://www.w3.org/TR/cors/#resource-preflight-requests + * https://www.w3.org/TR/cors/#resource-requests + * https://www.w3.org/TR/cors/#resource-preflight-requests * * @return bool False if the caller should abort (403 case), true otherwise (all other cases) */ @@ -719,7 +719,7 @@ class ApiMain extends ApiBase { $response->header( "Access-Control-Allow-Origin: $allowOrigin" ); $response->header( "Access-Control-Allow-Credentials: $allowCredentials" ); - // http://www.w3.org/TR/resource-timing/#timing-allow-origin + // https://www.w3.org/TR/resource-timing/#timing-allow-origin if ( $allowTiming !== false ) { $response->header( "Timing-Allow-Origin: $allowTiming" ); } diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index 712217b0a1..4fac37da35 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -75,7 +75,7 @@ class ApiRsd extends ApiBase { * compatible APIs, by hooking 'ApiRsdServiceApis' and adding more * elements to the array. * - * See http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html for + * See https://cyber.harvard.edu/blogs/gems/tech/rsd.html for * the base RSD spec, and check WordPress and StatusNet sites for * in-production examples listing several blogging and micrblogging * APIs. diff --git a/includes/cache/localisation/LCStoreCDB.php b/includes/cache/localisation/LCStoreCDB.php index 2c3f58fed7..78a4863fe7 100644 --- a/includes/cache/localisation/LCStoreCDB.php +++ b/includes/cache/localisation/LCStoreCDB.php @@ -31,7 +31,7 @@ use Cdb\Writer; * space. The performance advantage is greater when the DBA extension is * available than it is with the PHP port. * - * See Cdb.php and http://cr.yp.to/cdb.html + * See Cdb.php and https://cr.yp.to/cdb.html */ class LCStoreCDB implements LCStore { diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 6d072168a1..7208b7e52f 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -1134,7 +1134,7 @@ class DatabaseMssql extends DatabaseBase { /** * MS SQL requires specifying the escape character used in a LIKE query * or using Square brackets to surround characters that are to be escaped - * http://msdn.microsoft.com/en-us/library/ms179859.aspx + * https://msdn.microsoft.com/en-us/library/ms179859.aspx * Here we take the Specify-Escape-Character approach since it's less * invasive, renders a query that is closer to other DB's and better at * handling square bracket escaping diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 42168d7603..ab268032a6 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -51,7 +51,7 @@ class XmlDumpWriter { * you copy in the new xsd file. * * After it is reviewed, merged and deployed (sync-docroot), the index.html needs purging. - * echo "http://www.mediawiki.org/xml/index.html" | mwscript purgeList.php --wiki=aawiki + * echo "https://www.mediawiki.org/xml/index.html" | mwscript purgeList.php --wiki=aawiki */ 'xsi:schemaLocation' => "http://www.mediawiki.org/xml/export-$ver/ " . "http://www.mediawiki.org/xml/export-$ver.xsd", diff --git a/includes/filebackend/lockmanager/MySqlLockManager.php b/includes/filebackend/lockmanager/MySqlLockManager.php index fc23f7655b..5936e7d1d2 100644 --- a/includes/filebackend/lockmanager/MySqlLockManager.php +++ b/includes/filebackend/lockmanager/MySqlLockManager.php @@ -34,7 +34,7 @@ class MySqlLockManager extends DBLockManager { /** * Get a connection to a lock DB and acquire locks on $paths. - * This does not use GET_LOCK() per http://bugs.mysql.com/bug.php?id=1118. + * This does not use GET_LOCK() per https://bugs.mysql.com/bug.php?id=1118. * * @see DBLockManager::getLocksOnServer() * @param string $lockSrv diff --git a/includes/htmlform/fields/HTMLFloatField.php b/includes/htmlform/fields/HTMLFloatField.php index 2ef497895f..1eb332605b 100644 --- a/includes/htmlform/fields/HTMLFloatField.php +++ b/includes/htmlform/fields/HTMLFloatField.php @@ -17,7 +17,7 @@ class HTMLFloatField extends HTMLTextField { $value = trim( $value ); - # http://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers + # https://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers # with the addition that a leading '+' sign is ok. if ( !preg_match( '/^((\+|\-)?\d+(\.\d+)?(E(\+|\-)?\d+)?)?$/i', $value ) ) { return $this->msg( 'htmlform-float-invalid' )->parseAsBlock(); diff --git a/includes/htmlform/fields/HTMLHiddenField.php b/includes/htmlform/fields/HTMLHiddenField.php index c0fce2ba5d..02562c4a7e 100644 --- a/includes/htmlform/fields/HTMLHiddenField.php +++ b/includes/htmlform/fields/HTMLHiddenField.php @@ -11,7 +11,7 @@ class HTMLHiddenField extends HTMLFormField { } # Per HTML5 spec, hidden fields cannot be 'required' - # http://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29 + # https://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29 unset( $this->mParams['required'] ); } diff --git a/includes/htmlform/fields/HTMLIntField.php b/includes/htmlform/fields/HTMLIntField.php index b0148d987e..f9ee2b2c91 100644 --- a/includes/htmlform/fields/HTMLIntField.php +++ b/includes/htmlform/fields/HTMLIntField.php @@ -11,7 +11,7 @@ class HTMLIntField extends HTMLFloatField { return $p; } - # http://www.w3.org/TR/html5/infrastructure.html#signed-integers + # https://www.w3.org/TR/html5/infrastructure.html#signed-integers # with the addition that a leading '+' sign is ok. Note that leading zeros # are fine, and will be left in the input, which is useful for things like # phone numbers when you know that they are integers (the HTML5 type=tel diff --git a/includes/installer/MssqlInstaller.php b/includes/installer/MssqlInstaller.php index c5ec72b03f..5e8ed3fb8c 100644 --- a/includes/installer/MssqlInstaller.php +++ b/includes/installer/MssqlInstaller.php @@ -282,7 +282,7 @@ class MssqlInstaller extends DatabaseInstaller { // Check to ensure we can grant everything needed as well // We can't actually tell if we have WITH GRANT OPTION for a given permission, so we assume we do // and just check for the permission - // http://technet.microsoft.com/en-us/library/ms178569.aspx + // https://technet.microsoft.com/en-us/library/ms178569.aspx // The following array sets up which permissions imply whatever permissions we specify $implied = [ // schema database server diff --git a/includes/installer/PhpBugTests.php b/includes/installer/PhpBugTests.php index 01327be167..d412216aaa 100644 --- a/includes/installer/PhpBugTests.php +++ b/includes/installer/PhpBugTests.php @@ -24,7 +24,7 @@ /** * Test for PHP+libxml2 bug which breaks XML input subtly with certain versions. * Known fixed with PHP 5.2.9 + libxml2-2.7.3 - * @see http://bugs.php.net/bug.php?id=45996 + * @see https://bugs.php.net/bug.php?id=45996 * @ingroup PHPBugTests */ class PhpXmlBugTester { diff --git a/includes/jobqueue/JobQueueDB.php b/includes/jobqueue/JobQueueDB.php index 856cdfd61e..5ec11274d4 100644 --- a/includes/jobqueue/JobQueueDB.php +++ b/includes/jobqueue/JobQueueDB.php @@ -323,7 +323,7 @@ class JobQueueDB extends JobQueue { $invertedDirection = false; // whether one job_random direction was already scanned // This uses a replication safe method for acquiring jobs. One could use UPDATE+LIMIT // instead, but that either uses ORDER BY (in which case it deadlocks in MySQL) or is - // not replication safe. Due to http://bugs.mysql.com/bug.php?id=6980, subqueries cannot + // not replication safe. Due to https://bugs.mysql.com/bug.php?id=6980, subqueries cannot // be used here with MySQL. do { if ( $tinyQueue ) { // queue has <= MAX_OFFSET rows @@ -397,7 +397,7 @@ class JobQueueDB extends JobQueue { $row = false; // the row acquired do { if ( $dbw->getType() === 'mysql' ) { - // Per http://bugs.mysql.com/bug.php?id=6980, we can't use subqueries on the + // Per https://bugs.mysql.com/bug.php?id=6980, we can't use subqueries on the // same table being changed in an UPDATE query in MySQL (gives Error: 1093). // Oracle and Postgre have no such limitation. However, MySQL offers an // alternative here by supporting ORDER BY + LIMIT for UPDATE queries. diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index 84ded8d94e..79bfab33d0 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -335,7 +335,7 @@ class JobRunner implements LoggerAwareInterface { */ private function getMaxRssKb() { $info = wfGetRusage() ?: []; - // see http://linux.die.net/man/2/getrusage + // see https://linux.die.net/man/2/getrusage return isset( $info['ru_maxrss'] ) ? (int)$info['ru_maxrss'] : null; } diff --git a/includes/libs/MultiHttpClient.php b/includes/libs/MultiHttpClient.php index a870204963..f0b44a5082 100644 --- a/includes/libs/MultiHttpClient.php +++ b/includes/libs/MultiHttpClient.php @@ -215,7 +215,7 @@ class MultiHttpClient { // Wait (if possible) for available work... if ( $active > 0 && $mrc == CURLM_OK ) { if ( curl_multi_select( $chm, 10 ) == -1 ) { - // PHP bug 63411; http://curl.haxx.se/libcurl/c/curl_multi_fdset.html + // PHP bug 63411; https://curl.haxx.se/libcurl/c/curl_multi_fdset.html usleep( 5000 ); // 5ms } } diff --git a/includes/libs/Timing.php b/includes/libs/Timing.php index 62baaf1e93..57c253d50e 100644 --- a/includes/libs/Timing.php +++ b/includes/libs/Timing.php @@ -36,9 +36,9 @@ use Psr\Log\NullLogger; * getEntryByName(). * * The in-line documentation incorporates content from the User Timing Specification - * http://www.w3.org/TR/user-timing/ + * https://www.w3.org/TR/user-timing/ * Copyright © 2013 World Wide Web Consortium, (MIT, ERCIM, Keio, Beihang). - * http://www.w3.org/Consortium/Legal/2015/doc-license + * https://www.w3.org/Consortium/Legal/2015/doc-license * * @since 1.27 */ diff --git a/includes/libs/filebackend/FileBackend.php b/includes/libs/filebackend/FileBackend.php index f33f52265b..97f148c6fa 100644 --- a/includes/libs/filebackend/FileBackend.php +++ b/includes/libs/filebackend/FileBackend.php @@ -927,7 +927,7 @@ abstract class FileBackend implements LoggerAwareInterface { * @return ScopedCallback|null */ final protected function getScopedPHPBehaviorForOps() { - if ( PHP_SAPI != 'cli' ) { // http://bugs.php.net/bug.php?id=47540 + if ( PHP_SAPI != 'cli' ) { // https://bugs.php.net/bug.php?id=47540 $old = ignore_user_abort( true ); // avoid half-finished operations return new ScopedCallback( function () use ( $old ) { ignore_user_abort( $old ); diff --git a/includes/libs/filebackend/SwiftFileBackend.php b/includes/libs/filebackend/SwiftFileBackend.php index 4bc0ce69dc..12eda7349e 100644 --- a/includes/libs/filebackend/SwiftFileBackend.php +++ b/includes/libs/filebackend/SwiftFileBackend.php @@ -1209,7 +1209,7 @@ class SwiftFileBackend extends FileBackendStore { $this->rgwS3SecretKey, true // raw ) ); - // See http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html. + // See https://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html. // Note: adding a newline for empty CanonicalizedAmzHeaders does not work. // Note: S3 API is the rgw default; remove the /swift/ URL bit. return str_replace( '/swift/v1', '', $this->storageUrl( $auth ) . $spath ) . @@ -1305,7 +1305,7 @@ class SwiftFileBackend extends FileBackendStore { /** * Set read/write permissions for a Swift container. * - * @see http://swift.openstack.org/misc.html#acls + * @see http://docs.openstack.org/developer/swift/misc.html#acls * * In general, we don't allow listings to end-users. It's not useful, isn't well-defined * (lists are truncated to 10000 item with no way to page), and is just a performance risk. diff --git a/includes/libs/jsminplus.php b/includes/libs/jsminplus.php index 99cf399bd9..40f22c5efb 100644 --- a/includes/libs/jsminplus.php +++ b/includes/libs/jsminplus.php @@ -6,9 +6,9 @@ * Minifies a javascript file using a javascript parser * * This implements a PHP port of Brendan Eich's Narcissus open source javascript engine (in javascript) - * References: http://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine) - * Narcissus sourcecode: http://mxr.mozilla.org/mozilla/source/js/narcissus/ - * JSMinPlus weblog: http://crisp.tweakblogs.net/blog/cat/716 + * References: https://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine) + * Narcissus sourcecode: https://mxr.mozilla.org/mozilla/source/js/narcissus/ + * JSMinPlus weblog: https://crisp.tweakblogs.net/blog/cat/716 * * Tino Zijdel * @@ -936,7 +936,7 @@ class JSParser { //