diff --git a/resources/celerity/map.php b/resources/celerity/map.php index aef8bb26cd..e40db961f2 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -10,7 +10,7 @@ return array( 'conpherence.pkg.css' => 'b2d6f4b8', 'conpherence.pkg.js' => '020aebcf', 'core.pkg.css' => 'eeb65c02', - 'core.pkg.js' => '9250c090', + 'core.pkg.js' => '33424d18', 'dark-console.pkg.js' => '187792c2', 'differential.pkg.css' => 'abdb4fe9', 'differential.pkg.js' => '46fcb3af', @@ -216,7 +216,7 @@ return array( 'rsrc/externals/javelin/ext/view/__tests__/ViewInterpreter.js' => 'a9f35511', 'rsrc/externals/javelin/ext/view/__tests__/ViewRenderer.js' => '3a1b81f6', 'rsrc/externals/javelin/lib/Cookie.js' => '05d290ef', - 'rsrc/externals/javelin/lib/DOM.js' => 'e4c7622a', + 'rsrc/externals/javelin/lib/DOM.js' => '3c6f9405', 'rsrc/externals/javelin/lib/History.js' => '030b4f7a', 'rsrc/externals/javelin/lib/JSON.js' => '541f81c3', 'rsrc/externals/javelin/lib/Leader.js' => '0d2490ce', @@ -228,7 +228,7 @@ return array( 'rsrc/externals/javelin/lib/Router.js' => '32755edb', 'rsrc/externals/javelin/lib/Scrollbar.js' => 'a43ae2ae', 'rsrc/externals/javelin/lib/Sound.js' => 'd4cc2d2a', - 'rsrc/externals/javelin/lib/URI.js' => '2e255291', + 'rsrc/externals/javelin/lib/URI.js' => '1fcfd5c0', 'rsrc/externals/javelin/lib/Vector.js' => 'e9c80beb', 'rsrc/externals/javelin/lib/WebSocket.js' => 'fdc13e4e', 'rsrc/externals/javelin/lib/Workflow.js' => 'cc1553f3', @@ -639,7 +639,7 @@ return array( 'javelin-color' => '78f811c9', 'javelin-cookie' => '05d290ef', 'javelin-diffusion-locate-file-source' => '6c798a10', - 'javelin-dom' => 'e4c7622a', + 'javelin-dom' => '3c6f9405', 'javelin-dynval' => '202a2e85', 'javelin-event' => '1dbe260d', 'javelin-external-editor-link-engine' => '48a8641f', @@ -670,7 +670,7 @@ return array( 'javelin-typeahead-preloaded-source' => '5a79f6c3', 'javelin-typeahead-source' => '8badee71', 'javelin-typeahead-static-source' => '80bff3af', - 'javelin-uri' => '2e255291', + 'javelin-uri' => '1fcfd5c0', 'javelin-util' => '472cda1c', 'javelin-vector' => 'e9c80beb', 'javelin-view' => '289bf236', @@ -1001,6 +1001,11 @@ return array( 'javelin-stratcom', 'javelin-util', ), + '1fcfd5c0' => array( + 'javelin-install', + 'javelin-util', + 'javelin-stratcom', + ), '202a2e85' => array( 'javelin-install', 'javelin-reactornode', @@ -1089,11 +1094,6 @@ return array( 'javelin-request', 'phabricator-shaped-request', ), - '2e255291' => array( - 'javelin-install', - 'javelin-util', - 'javelin-stratcom', - ), '2f1db1ed' => array( 'javelin-util', ), @@ -1149,6 +1149,13 @@ return array( 'javelin-behavior', 'phabricator-prefab', ), + '3c6f9405' => array( + 'javelin-magical-init', + 'javelin-install', + 'javelin-util', + 'javelin-vector', + 'javelin-stratcom', + ), '3dc5ad43' => array( 'javelin-behavior', 'javelin-stratcom', @@ -2055,13 +2062,6 @@ return array( 'javelin-dom', 'javelin-json', ), - 'e4c7622a' => array( - 'javelin-magical-init', - 'javelin-install', - 'javelin-util', - 'javelin-vector', - 'javelin-stratcom', - ), 'e5bdb730' => array( 'javelin-behavior', 'javelin-stratcom', diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php index 0352c4cb9d..b66a5ef62e 100644 --- a/src/aphront/AphrontRequest.php +++ b/src/aphront/AphrontRequest.php @@ -795,7 +795,7 @@ final class AphrontRequest extends Phobject { $try_names[] = 'HTTP_'.$php_index; if ($php_index == 'CONTENT_TYPE' || $php_index == 'CONTENT_LENGTH') { // These headers may be available under alternate names. See - // http://www.php.net/manual/en/reserved.variables.server.php#110763 + // https://www.php.net/manual/reserved.variables.server.php#110763 $try_names[] = $php_index; } diff --git a/src/aphront/sink/AphrontHTTPSink.php b/src/aphront/sink/AphrontHTTPSink.php index d3b16cc449..9bc3b181e4 100644 --- a/src/aphront/sink/AphrontHTTPSink.php +++ b/src/aphront/sink/AphrontHTTPSink.php @@ -65,12 +65,12 @@ abstract class AphrontHTTPSink extends Phobject { // Attackers may perform an "HTTP response splitting" attack by making // the application emit certain types of headers containing newlines: // - // http://en.wikipedia.org/wiki/HTTP_response_splitting + // https://en.wikipedia.org/wiki/HTTP_response_splitting // // PHP has built-in protections against HTTP response-splitting, but they // are of dubious trustworthiness: // - // http://news.php.net/php.internals/57655 + // https://news-web.php.net/php.internals/57655 if (preg_match('/[\r\n\0]/', $name.$value)) { throw new Exception( diff --git a/src/applications/config/check/PhabricatorBaseURISetupCheck.php b/src/applications/config/check/PhabricatorBaseURISetupCheck.php index e73c1455bf..5701fc3c92 100644 --- a/src/applications/config/check/PhabricatorBaseURISetupCheck.php +++ b/src/applications/config/check/PhabricatorBaseURISetupCheck.php @@ -76,7 +76,7 @@ final class PhabricatorBaseURISetupCheck extends PhabricatorSetupCheck { 'will not work properly until you configure it.'. "\n\n". 'You should set the base URI to the URI you will use to access '. - 'this server, like "http://devtools.example.com/".'. + 'this server, like "https://devtools.example.com/".'. "\n\n". 'Include the protocol (http or https), domain name, and port number if '. 'you are using a port other than 80 (http) or 443 (https).'. diff --git a/src/applications/config/option/PhabricatorCoreConfigOptions.php b/src/applications/config/option/PhabricatorCoreConfigOptions.php index 9b5621ef70..65bb6fd012 100644 --- a/src/applications/config/option/PhabricatorCoreConfigOptions.php +++ b/src/applications/config/option/PhabricatorCoreConfigOptions.php @@ -79,7 +79,7 @@ EOREMARKUP 'improves security by preventing cookies from being set on other '. 'domains, and allows daemons to send emails with links that have '. 'the correct domain.')) - ->addExample('http://devtools.example.com/', pht('Valid Setting')), + ->addExample('https://devtools.example.com/', pht('Valid Setting')), $this->newOption('phabricator.production-uri', 'string', null) ->setSummary( pht('Primary install URI, for multi-environment installs.')) @@ -93,7 +93,7 @@ EOREMARKUP 'installs do not need to set this option.', PlatformSymbols::getPlatformServerName(), 'phabricator.base-uri')) - ->addExample('http://devtools.example.com/', pht('Valid Setting')), + ->addExample('https://devtools.example.com/', pht('Valid Setting')), $this->newOption('phabricator.allowed-uris', 'list', array()) ->setLocked(true) ->setSummary(pht('Alternative URIs that can access this service.')) @@ -104,8 +104,8 @@ EOREMARKUP "won't work. The major use case for this is moving installs ". "across domains.")) ->addExample( - "http://phabricator2.example.com/\n". - "http://phabricator3.example.com/", + "https://phorge2.example.com/\n". + "https://phorge3.example.com/", pht('Valid Setting')), $this->newOption('phabricator.timezone', 'string', null) ->setSummary( @@ -297,8 +297,8 @@ EOREMARKUP 'browsers will not set cookies on domains with no TLD.', $key, '.', - 'http://example.com/', - 'http://example/')); + 'https://example.com/', + 'https://example/')); } $path = $uri->getPath(); @@ -309,8 +309,8 @@ EOREMARKUP "e.g. '%s' is OK, but '%s' is not. This software must be '. 'installed on an entire domain; it can not be installed on a path.", $key, - 'http://devtools.example.com/', - 'http://example.com/devtools/')); + 'https://devtools.example.com/', + 'https://example.com/devtools/')); } } diff --git a/src/applications/files/config/PhabricatorFilesConfigOptions.php b/src/applications/files/config/PhabricatorFilesConfigOptions.php index 6ef477ec8e..a908f24508 100644 --- a/src/applications/files/config/PhabricatorFilesConfigOptions.php +++ b/src/applications/files/config/PhabricatorFilesConfigOptions.php @@ -34,7 +34,7 @@ final class PhabricatorFilesConfigOptions 'text/x-diff' => 'text/plain; charset=utf-8', // ".ico" favicon files, which have mime type diversity. See: - // http://en.wikipedia.org/wiki/ICO_(file_format)#MIME_type + // https://en.wikipedia.org/wiki/ICO_(file_format)#MIME_type 'image/x-ico' => 'image/x-icon', 'image/x-icon' => 'image/x-icon', 'image/vnd.microsoft.icon' => 'image/x-icon', @@ -92,7 +92,7 @@ final class PhabricatorFilesConfigOptions 'application/ogg' => true, ); - // largely lifted from http://en.wikipedia.org/wiki/Internet_media_type + // largely lifted from https://en.wikipedia.org/wiki/Internet_media_type $icon_default = array( // audio file icon 'audio/basic' => 'fa-file-audio-o', diff --git a/src/applications/reference/src/controller/RemarkupReferenceController.php b/src/applications/reference/src/controller/RemarkupReferenceController.php index 5773cfa00c..27105ea1c0 100644 --- a/src/applications/reference/src/controller/RemarkupReferenceController.php +++ b/src/applications/reference/src/controller/RemarkupReferenceController.php @@ -35,9 +35,9 @@ These are inline styles, and can be applied to most text: #project # Mention a Project [[wiki page]] # Link to Phriction [[wiki page | name]] # Named link to Phriction - http://xyz/ # Link to web - [[http://xyz/ | name]] # Named link to web - [name](http://xyz/) # Alternate Link + https://xyz/ # Link to web + [[https://xyz/ | name]] # Named link to web + [name](https://xyz/) # Alternate Link These are block styles, and must be separated from surrounding text by empty lines: @@ -347,24 +347,24 @@ On an entirely different topic, ... = Linking URIs = -URIs are automatically linked: http://phorge.it/ +URIs are automatically linked: https://phorge.it/ If you have a URI with problematic characters in it, like -"`http://comma.org/,`", you can surround it with angle brackets: +"`https://example.com/,`", you can surround it with angle brackets: - + -This will force the parser to consume the whole URI: +This will force the parser to consume the whole URI: You can also use create named links, where you choose the displayed text. These work within Phorge or on the internet at large: [[/herald/transcript/ | Herald Transcripts]] - [[http://www.boring-legal-documents.com/ | exciting legal documents]] + [[https://boring.example.com/ | exciting example]] Markdown-style links are also supported: - [Toil](http://www.trouble.com) + [Example](https://www.example.com) = Linking to Objects = @@ -595,7 +595,7 @@ review and adjust any relative links it contains. To place text in a literal block use `%%%`: %%%Text that won't be processed by remarkup - [[http://www.example.com | example]] + [[https://www.example.com | example]] %%% Remarkup will not process the text inside of literal blocks (other than to diff --git a/src/docs/contributor/describing_problems.diviner b/src/docs/contributor/describing_problems.diviner index 30f3b4cad0..080d359c8c 100644 --- a/src/docs/contributor/describing_problems.diviner +++ b/src/docs/contributor/describing_problems.diviner @@ -144,7 +144,7 @@ how to describe problems and ask questions effectively: - [[ http://www.catb.org/esr/faqs/smart-questions.html | How To Ask Questions The Smart Way ]], by Eric S. Raymond - - [[ http://xyproblem.info | XY Problem ]] + - [[ https://xyproblem.info/ | XY Problem ]] - [[ https://en.wikipedia.org/wiki/5_Whys | 5 Whys Technique ]] Asking good questions and describing problems clearly is an important, diff --git a/src/docs/contributor/using_oauthserver.diviner b/src/docs/contributor/using_oauthserver.diviner index 01274c0944..a0675d9863 100644 --- a/src/docs/contributor/using_oauthserver.diviner +++ b/src/docs/contributor/using_oauthserver.diviner @@ -9,7 +9,7 @@ Phorge includes an OAuth Server which supports the `Authorization Code Grant` flow as described in the OAuth 2.0 specification: -http://tools.ietf.org/html/draft-ietf-oauth-v2-23 +https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-23 This functionality can allow clients to integrate with a given Phorge instance in a secure way with granular data access. diff --git a/src/docs/user/configuration/configuring_inbound_email.diviner b/src/docs/user/configuration/configuring_inbound_email.diviner index 301461965c..f8c5a88af2 100644 --- a/src/docs/user/configuration/configuring_inbound_email.diviner +++ b/src/docs/user/configuration/configuring_inbound_email.diviner @@ -174,7 +174,7 @@ Mailgun Setup ============= To use Mailgun, you need a Mailgun account. You can sign up at -. Provided you have such an account, configure it +. Provided you have such an account, configure it like this: - Configure a mail domain according to Mailgun's instructions. diff --git a/src/docs/user/userguide/amazon_rds.diviner b/src/docs/user/userguide/amazon_rds.diviner index aab2058140..96e6e348c9 100644 --- a/src/docs/user/userguide/amazon_rds.diviner +++ b/src/docs/user/userguide/amazon_rds.diviner @@ -21,7 +21,7 @@ The documentation and various setup warnings will sometimes direct you to make configuration changes in `my.cnf`. In Amazon RDS, you don't have direct access to `my.cnf` and thus can not make these changes in the configuration file. -Instead, you can use [[ http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html | DB Parameter Groups ]]. +Instead, you can use [[ https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html | DB Parameter Groups ]]. You can access these from your AWS console and use the web interface to make necessary changes. The web UI will give you a user-friendly key-value table: just identify the option you need to change, then select a new value for it. diff --git a/src/docs/user/userguide/arcanist_windows.diviner b/src/docs/user/userguide/arcanist_windows.diviner index 98adcfb359..bd285f0906 100644 --- a/src/docs/user/userguide/arcanist_windows.diviner +++ b/src/docs/user/userguide/arcanist_windows.diviner @@ -45,7 +45,7 @@ Some arc workflows prompt you to edit large blocks of text using a text editor. You can configure various programs for this purpose, depending on which text editor you prefer. Some editors that will work are: - - [[ http://notepad-plus-plus.org/ | Notepad++ ]], a good all-around editor. + - [[ https://notepad-plus-plus.org/ | Notepad++ ]], a good all-around editor. - **vim**, which comes with Git Bash. - [[ https://www.sublimetext.com/ | Sublime Text ]]. diff --git a/src/docs/user/userguide/diffusion_symbols.diviner b/src/docs/user/userguide/diffusion_symbols.diviner index 6d6cc8847b..2d7f456ca9 100644 --- a/src/docs/user/userguide/diffusion_symbols.diviner +++ b/src/docs/user/userguide/diffusion_symbols.diviner @@ -31,7 +31,7 @@ Phorge includes a script which can identify symbols in PHP projects: Phorge also includes a script which can identify symbols in any programming language that has classes and/or functions, and is supported by -Exuberant Ctags (http://ctags.sourceforge.net): +Exuberant Ctags (https://ctags.sourceforge.net): ./scripts/symbols/generate_ctags_symbols.php diff --git a/src/docs/user/userguide/diviner.diviner b/src/docs/user/userguide/diviner.diviner index 1c0b6f4f78..3db1a30a91 100644 --- a/src/docs/user/userguide/diviner.diviner +++ b/src/docs/user/userguide/diviner.diviner @@ -35,7 +35,7 @@ look like this: "title" : "Example Documentation", "short" : "Example Docs", "root" : ".", - "uri.source" : "http://example.com/diffusion/X/browse/master/%f$%l", + "uri.source" : "https://example.com/diffusion/X/browse/master/%f$%l", "rules" : { "(\\.diviner$)" : "DivinerArticleAtomizer" }, @@ -76,7 +76,7 @@ The properties in this file are: repository browser so that you can quickly jump to the definition of a class or function. To do this, it uses a URI pattern which you specify here. Normally, this URI should point at a repository browser like Diffusion. - For example, `"http://repobrowser.yourcompany.com/%f#%l"`. You can use these + For example, `"https://repobrowser.example.com/%f#%l"`. You can use these conversions in the URI, which will be replaced at runtime: - `%f`: Replaced with the name of the file. - `%l`: Replaced with the line number. diff --git a/src/docs/user/userguide/remarkup.diviner b/src/docs/user/userguide/remarkup.diviner index efefc7600b..3b5a603cfa 100644 --- a/src/docs/user/userguide/remarkup.diviner +++ b/src/docs/user/userguide/remarkup.diviner @@ -28,9 +28,9 @@ These are inline styles, and can be applied to most text: #project # Mention a Project [[wiki page]] # Link to Phriction [[wiki page | name]] # Named link to Phriction - http://xyz/ # Link to web - [[http://xyz/ | name]] # Named link to web - [name](http://xyz/) # Alternate Link + https://xyz/ # Link to web + [[https://xyz/ | name]] # Named link to web + [name](https://xyz/) # Alternate Link These are block styles, and must be separated from surrounding text by empty lines: @@ -340,24 +340,24 @@ On an entirely different topic, ... = Linking URIs = -URIs are automatically linked: http://phorge.it/ +URIs are automatically linked: https://phorge.it/ If you have a URI with problematic characters in it, like -"`http://comma.org/,`", you can surround it with angle brackets: +"`https://example.com/,`", you can surround it with angle brackets: - + -This will force the parser to consume the whole URI: +This will force the parser to consume the whole URI: You can also use create named links, where you choose the displayed text. These work within Phorge or on the internet at large: [[/herald/transcript/ | Herald Transcripts]] - [[http://www.boring-legal-documents.com/ | exciting legal documents]] + [[https://boring.example.com/ | exciting example]] Markdown-style links are also supported: - [Toil](http://www.trouble.com) + [Example](https://www.example.com) = Linking to Objects = @@ -589,7 +589,7 @@ review and adjust any relative links it contains. To place text in a literal block use `%%%`: %%%Text that won't be processed by remarkup - [[http://www.example.com | example]] + [[https://www.example.com | example]] %%% Remarkup will not process the text inside of literal blocks (other than to diff --git a/src/infrastructure/markup/markuprule/PhutilRemarkupHyperlinkRule.php b/src/infrastructure/markup/markuprule/PhutilRemarkupHyperlinkRule.php index 3404b7f0e4..523c65dd21 100644 --- a/src/infrastructure/markup/markuprule/PhutilRemarkupHyperlinkRule.php +++ b/src/infrastructure/markup/markuprule/PhutilRemarkupHyperlinkRule.php @@ -59,10 +59,10 @@ final class PhutilRemarkupHyperlinkRule extends PhutilRemarkupRule { // Anything else we match "ungreedily", which means we'll look for // stuff that's probably puncutation or otherwise not part of the URL and // not link it. This lets someone write "QuicK! Go to - // http://www.example.com/!". We also apply some paren balancing rules. + // https://www.example.com/!". We also apply some paren balancing rules. // NOTE: We're explicitly avoiding capturing stored blocks, so text like - // `http://www.example.com/[[x | y]]` doesn't get aggressively captured. + // `https://www.example.com/[[x | y]]` doesn't get aggressively captured. $text = preg_replace_callback( $bare_pattern, @@ -162,8 +162,8 @@ final class PhutilRemarkupHyperlinkRule extends PhutilRemarkupRule { // handle the two common paren cases, Wikipedia links and English language // parentheticals, e.g.: // - // http://en.wikipedia.org/wiki/Noun_(disambiguation) - // (see also http://www.example.com) + // https://en.wikipedia.org/wiki/Noun_(disambiguation) + // (see also https://www.example.com) // // We could apply a craftier heuristic here which tries to actually balance // the parens, but this is probably sufficient. diff --git a/webroot/rsrc/externals/javelin/lib/DOM.js b/webroot/rsrc/externals/javelin/lib/DOM.js index 7eca573649..49aa6a3cde 100644 --- a/webroot/rsrc/externals/javelin/lib/DOM.js +++ b/webroot/rsrc/externals/javelin/lib/DOM.js @@ -219,13 +219,13 @@ JX.$H = function(str) { * * JX.$N( * 'a', - * {href: 'http://www.javelinjs.com'}, - * 'Visit the Javelin Homepage'); + * {href: 'https://example.com/'}, + * 'Visit the Example Homepage'); * * This is equivalent to: * * LANG=HTML - * Visit the Javelin Homepage + * Visit the Example Homepage * * If you only want to specify content, you can omit the attribute parameter. * That is, these calls are equivalent: diff --git a/webroot/rsrc/externals/javelin/lib/URI.js b/webroot/rsrc/externals/javelin/lib/URI.js index 2aaba39d1a..c103215e51 100644 --- a/webroot/rsrc/externals/javelin/lib/URI.js +++ b/webroot/rsrc/externals/javelin/lib/URI.js @@ -13,7 +13,7 @@ * Handy convenience function that returns a @{class:JX.URI} instance. This * allows you to write things like: * - * JX.$U('http://zombo.com/').getDomain(); + * JX.$U('https://example.com/').getDomain(); * * @param string Unparsed URI. * @return @{class:JX.URI} JX.URI instance. @@ -25,17 +25,17 @@ JX.$U = function(uri) { /** * Convert a string URI into a maleable object. * - * var uri = new JX.URI('http://www.example.com/asdf.php?a=b&c=d#anchor123'); + * var uri = new JX.URI('https://www.example.com/asdf.php?a=b&c=d#anchor12'); * uri.getProtocol(); // http * uri.getDomain(); // www.example.com * uri.getPath(); // /asdf.php * uri.getQueryParams(); // {a: 'b', c: 'd'} - * uri.getFragment(); // anchor123 + * uri.getFragment(); // anchor12 * * ...and back into a string: * * uri.setFragment('clowntown'); - * uri.toString() // http://www.example.com/asdf.php?a=b&c=d#clowntown + * uri.toString() // https://www.example.com/asdf.php?a=b&c=d#clowntown */ JX.install('URI', { statics : {