Skip to content

Commit

Permalink
Use https in URLs where available (PowerShell#8622)
Browse files Browse the repository at this point in the history
Use https in URLS across the repository where the domain serves content by https.
  • Loading branch information
xtqqczze authored and TravisEz13 committed Jan 24, 2019
1 parent 6ee4521 commit 8635288
Show file tree
Hide file tree
Showing 42 changed files with 464 additions and 467 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ Using semantic line feeds (breaks that separate ideas)
is also appropriate, as is using Markdown syntax.
```

* These are based on Tim Pope's [guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html),
* These are based on Tim Pope's [guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html),
Git SCM [submitting patches](https://git.kernel.org/cgit/git/git.git/tree/Documentation/SubmittingPatches),
Brandon Rhodes' [semantic linefeeds][],
and John Gruber's [Markdown syntax](https://daringfireball.net/projects/markdown/syntax).
Expand Down Expand Up @@ -366,7 +366,7 @@ Once you sign a CLA, all your existing and future pull requests will be labeled
[contribute-issues]: #contributing-to-issues
[open-issue]: https://github.com/PowerShell/PowerShell/issues
[up-for-grabs]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AUp-for-Grabs
[semantic linefeeds]: http://rhodesmill.org/brandon/2012/one-sentence-per-line/
[semantic linefeeds]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/
[PowerShell-Docs]: https://github.com/powershell/powershell-docs/
[use-vscode-editor]: ../docs/learning-powershell/using-vscode.md#editing-with-visual-studio-code
[repository-maintainer]: ../docs/community/governance.md#repository-maintainers
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/Support_Question.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Support Question ❓
about: If you have a question, you can try asking in the PowerShell Slack channel first. If you need official support, refer to the [PowerShell Support Lifecycle](http://aka.ms/pslifecycle)
about: If you have a question, you can try asking in the PowerShell Slack channel first. If you need official support, refer to the [PowerShell Support Lifecycle](https://aka.ms/pslifecycle)

---

# Support Question

## Official support

[PowerShell Support Lifecycle](http://aka.ms/pslifecycle)
[PowerShell Support Lifecycle](https://aka.ms/pslifecycle)

## Community Resources

Expand Down
2 changes: 0 additions & 2 deletions ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,4 @@ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.



-------------------------------------------------------------------
6 changes: 3 additions & 3 deletions assets/AppImageThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ property of their respective owners.
# provided under other licenses, as set forth below.
#
# The BSD License
# http://opensource.org/licenses/bsd-license.php
# https://opensource.org/licenses/bsd-license.php
# Copyright (C) 2006-2008, Google Inc.
#
# All rights reserved.
Expand Down Expand Up @@ -289,7 +289,7 @@ property of their respective owners.
# Copyright (c) 2013 International Business Machines Corporation
# and others. All Rights Reserved.
#
# Project: http://code.google.com/p/lao-dictionary/
# Project: https://code.google.com/p/lao-dictionary/
# Dictionary: http://lao-dictionary.googlecode.com/git/Lao-Dictionary.txt
# License: http://lao-dictionary.googlecode.com/git/Lao-Dictionary-LICENSE.txt
# (copied below)
Expand Down Expand Up @@ -440,7 +440,7 @@ XZ Utils Licensing
naturally it is not legally required. Here is an example of a good
notice to put into "about box" or into documentation:

This software includes code from XZ Utils <http://tukaani.org/xz/>.
This software includes code from XZ Utils <https://tukaani.org/xz/>.

The following license texts are included in the following files:
- COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
Expand Down
2 changes: 1 addition & 1 deletion assets/additionalAttributions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File: Hashtables from ConvertFrom-json
----------------------------------------------

http://stackoverflow.com/questions/22002748/hashtables-from-convertfrom-json-have-different-type-from-powershells-built-in-h
https://stackoverflow.com/questions/22002748/hashtables-from-convertfrom-json-have-different-type-from-powershells-built-in-h

Copyright (c) 2015 Dave Wyatt. All rights reserved.

Expand Down
779 changes: 389 additions & 390 deletions assets/license.rtf

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/patch-template.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Patch
AllowRemoval="yes"
Manufacturer="Microsoft Powershell"
MoreInfoURL="http://github.com/powershell/powershell"
MoreInfoURL="https://github.com/powershell/powershell"
DisplayName="Sample Patch"
Description="Small Update Patch"
Classification="Update"
Expand Down
2 changes: 1 addition & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ function Start-PSBootstrap {
Invoke-Expression "$baseCommand $Deps"
}
} elseif ($Environment.IsMacOS) {
precheck 'brew' "Bootstrap dependency 'brew' not found, must install Homebrew! See http://brew.sh/"
precheck 'brew' "Bootstrap dependency 'brew' not found, must install Homebrew! See https://brew.sh/"

# Build tools
$Deps += "cmake"
Expand Down
12 changes: 6 additions & 6 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Where can I learn PowerShell's syntax?

[SS64.com](http://ss64.com/ps/syntax.html) is a good resource.
[SS64.com](https://ss64.com/ps/syntax.html) is a good resource.
[Microsoft Docs](https://docs.microsoft.com/powershell/scripting/overview?view=powershell-6) is another excellent resource.

## What are the best practices and style?
Expand All @@ -21,14 +21,14 @@ The [PoshCode][] unofficial guide is our reference.

### Things that create a scope

- [functions](http://ss64.com/ps/syntax-functions.html)
- [call operator](http://ss64.com/ps/call.html) (`& { }`)
- [script invocations](http://ss64.com/ps/syntax-run.html)
- [functions](https://ss64.com/ps/syntax-functions.html)
- [call operator](https://ss64.com/ps/call.html) (`& { }`)
- [script invocations](https://ss64.com/ps/syntax-run.html)

### Things that operate in the current scope

- [source operator](http://ss64.com/ps/source.html) (`. { }`)
- [statements](http://ss64.com/ps/statements.html) (`if .. else`, `for`, `switch`, etc.)
- [source operator](https://ss64.com/ps/source.html) (`. { }`)
- [statements](https://ss64.com/ps/statements.html) (`if .. else`, `for`, `switch`, etc.)

## Why didn't an error throw an exception?

Expand Down
2 changes: 1 addition & 1 deletion docs/building/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ building on macOS is almost identical.

## Environment

You will want [Homebrew](http://brew.sh/), the missing package manager for macOS.
You will want [Homebrew](https://brew.sh/), the missing package manager for macOS.
Once installed, follow the same instructions to download and
install a self-hosted copy of PowerShell on your macOS machine.
From `pwsh.exe`, run `Import-Module ./build.psm1` and use `Start-PSBootstrap` to install the dependencies.
Expand Down
2 changes: 1 addition & 1 deletion docs/debugging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ careful not to commit such a change.)
[core-debug]: https://blogs.msdn.microsoft.com/visualstudioalm/2016/03/10/experimental-net-core-debugging-in-vs-code/
[vscode]: https://code.visualstudio.com/
[OmniSharp]: https://github.com/OmniSharp/omnisharp-vscode
[vscclrdebugger]: http://aka.ms/vscclrdebugger
[vscclrdebugger]: https://aka.ms/vscclrdebugger

PowerShell
==========
Expand Down
2 changes: 1 addition & 1 deletion docs/learning-powershell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ Commercial Resources
[ebook-from-powershell.com]: http://powershell.com/cs/blogs/ebookv2/default.aspx
[channel9-learn-powershell]: https://channel9.msdn.com/Search?term=powershell#ch9Search
[powershell.com-learn-powershell]: http://powershell.com/cs/media/14/default.aspx
[quick-reference]: http://www.powershellmagazine.com/2014/04/24/windows-powershell-4-0-and-other-quick-reference-guides/
[quick-reference]: https://www.powershellmagazine.com/2014/04/24/windows-powershell-4-0-and-other-quick-reference-guides/
[script-guy-how-to]:https://blogs.technet.microsoft.com/tommypatterson/2015/09/04/ed-wilsons-powershell5-videos-now-on-channel9-2/
[basic-cookbooks]:https://docs.microsoft.com/powershell/scripting/samples/sample-scripts-for-administration?view=powershell-6
2 changes: 1 addition & 1 deletion docs/learning-powershell/create-powershell-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ else {
# Remove loopback address from output regardless of platform
$IP | Where-Object {$_ -ne '127.0.0.1'}
```
[run-ps]:http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3
[run-ps]:https://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3
8 changes: 4 additions & 4 deletions docs/learning-powershell/powershell-beginners-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,16 @@ For more details, see [Create and Run PowerShell Script Guide][create-run-script
[cookbook]: http://shop.oreilly.com/product/9780596801519.do
[ebook-list]: https://martin77s.wordpress.com/2014/05/26/free-powershell-ebooks/
[ebooks-powershell.com]: http://powershell.com/cs/blogs/ebookv2/default.aspx
[tutorial]: http://www.computerperformance.co.uk/powershell/index.htm
[tutorial]: https://www.computerperformance.co.uk/powershell/index.htm
[to-learn]:https://blogs.technet.microsoft.com/heyscriptingguy/2015/01/04/weekend-scripter-the-best-ways-to-learn-powershell/
[ps-module]:https://msdn.microsoft.com/library/dd878324%28v=vs.85%29.aspx
[create-ps-module]:http://www.tomsitpro.com/articles/powershell-modules,2-846.html
[remoting]:https://channel9.msdn.com/Series/GetStartedPowerShell3/06
[in-depth]: https://channel9.msdn.com/events/MMS/2012/SV-B406
[remote-mgmt]:http://windowsitpro.com/powershell/powershell-basics-remote-management
[remote-mgmt]:https://windowsitpro.com/powershell/powershell-basics-remote-management
[remote-commands]:https://docs.microsoft.com/powershell/scripting/core-powershell/running-remote-commands?view=powershell-6
[examples]:http://examples.oreilly.com/9780596528492/
[examples]:https://examples.oreilly.com/9780596528492/
[examples-ps-module]:https://msdn.microsoft.com/library/dd878340%28v=vs.85%29.aspx
[writing-ps-module]:http://www.powershellmagazine.com/2014/03/18/writing-a-powershell-module-in-c-part-1-the-basics/
[writing-ps-module]:https://www.powershellmagazine.com/2014/03/18/writing-a-powershell-module-in-c-part-1-the-basics/
[sample-code]:https://msdn.microsoft.com/library/ff602031%28v=vs.85%29.aspx
[create-run-script]:./create-powershell-scripts.md
2 changes: 1 addition & 1 deletion docs/maintainers/issue-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The following labels are used on PRs:
* `Compliance` : Issues with the compliance label are required to be fixed either in the long term or short term for
Microsoft to continue to sign and release packages from the project as official Microsoft packages.
The time frame in which it needs to be fixed should be identified in the issue.
* `Documentation Needed` : The PR has changes that require a documentation change or new documentation added to [PowerShell-Docs](http://github.com/powershell/powershell-docs)
* `Documentation Needed` : The PR has changes that require a documentation change or new documentation added to [PowerShell-Docs](https://github.com/powershell/powershell-docs)
* `First-Time-Issue` : An issue that is identified as being easy and a good candidate for first time contributors
* `Hackathon` or `Hacktoberfest` : An issue that would be a good candidate for hackathons such as `Hacktoberfest` or `Hackillinois`
* `Porting` : An issue that affects a feature not yet ported to other platforms.
Expand Down
2 changes: 1 addition & 1 deletion docs/maintainers/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ GitHub will see the tag and present it as an option when creating a new [release
Start the release, use the annotated tag's summary as the title,
and save the release as a draft while you upload the binary packages.

[semver]: http://semver.org/
[semver]: https://semver.org/
[tag]: https://git-scm.com/book/en/v2/Git-Basics-Tagging
[release]: https://help.github.com/articles/creating-releases/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public AsyncResultErrorEventArgs(
/// EnumerateInstancesAsync operation of <see cref="CimSession"/> object.
/// </para>
/// <para>
/// (See http://channel9.msdn.com/posts/J.Van.Gogh/Reactive-Extensions-API-in-depth-Contract/)
/// (See https://channel9.msdn.com/posts/J.Van.Gogh/Reactive-Extensions-API-in-depth-Contract/)
/// for the IObserver/IObservable contact
/// - the only possible sequence is OnNext* (OnCompleted|OnError)?
/// - callbacks are serialized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static string ObjectToWqlLiteral(object o)
{
if (LanguagePrimitives.IsNull(o))
{
return "null"; // based on an example at http://msdn.microsoft.com/library/aa394054(VS.85).aspx
return "null"; // based on an example at https://msdn.microsoft.com/library/aa394054(VS.85).aspx
}

o = CimValueConverter.ConvertFromDotNetToCim(o);
Expand Down Expand Up @@ -95,10 +95,10 @@ private static string ObjectToWqlLiteral(object o)
{
if ((bool)LanguagePrimitives.ConvertTo(o, typeof(bool), CultureInfo.InvariantCulture))
{
return "TRUE"; // based on http://msdn.microsoft.com/library/aa394054(VS.85).aspx
return "TRUE"; // based on https://msdn.microsoft.com/library/aa394054(VS.85).aspx
}

return "FALSE"; // based on http://msdn.microsoft.com/library/aa394054(VS.85).aspx
return "FALSE"; // based on https://msdn.microsoft.com/library/aa394054(VS.85).aspx
}

throw CimValueConverter.GetInvalidCastException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public struct TIME_ZONE_INFORMATION
/// <summary>
/// Definition of SE_TIME_ZONE_NAME constant from Win32 API.
/// </summary>
public const string SE_TIME_ZONE_NAME = "SeTimeZonePrivilege"; // http://msdn.microsoft.com/library/bb530716(VS.85).aspx
public const string SE_TIME_ZONE_NAME = "SeTimeZonePrivilege"; // https://msdn.microsoft.com/library/bb530716(VS.85).aspx

/// <summary>
/// PInvoke GetCurrentProcess API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ protected override void EndProcessing()
/// Provides an adapter API for random numbers that may be either cryptographically random, or
/// generated with the regular pseudo-random number generator. Re-implementations of
/// methods using the NextBytes() primitive based on the CLR implementation:
/// http://referencesource.microsoft.com/#mscorlib/system/random.cs.
/// https://referencesource.microsoft.com/#mscorlib/system/random.cs.
/// </summary>
internal class PolymorphicRandomNumberGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.PowerShell
/// This class is intended for internal use only.
/// </summary>
/// <remarks>
/// Originally sourced from http://blogs.msdn.com/adamroot/pages/interop-with-propvariants-in-net.aspx
/// Originally sourced from https://blogs.msdn.com/adamroot/pages/interop-with-propvariants-in-net.aspx
/// and modified to add ability to set values
/// </remarks>
[StructLayout(LayoutKind.Explicit)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ internal struct MouseInput

/// <summary>
/// A set of bit flags that specify various aspects of mouse motion and button clicks.
/// See (http://msdn.microsoft.com/library/ms646273(VS.85).aspx)
/// See (https://msdn.microsoft.com/library/ms646273(VS.85).aspx)
/// </summary>
internal DWORD Flags;

Expand Down Expand Up @@ -2852,7 +2852,7 @@ private static HostException CreateHostException(
internal static int LengthInBufferCells(char c)
{
// The following is based on http://www.cl.cam.ac.uk/~mgk25/c/wcwidth.c
// which is derived from http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt
// which is derived from https://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt

bool isWide = c >= 0x1100 &&
(c <= 0x115f || /* Hangul Jamo init. consonants */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2785,7 +2785,7 @@
</maps>
<templates>
<!--
see http://msdn.microsoft.com/library/aa382747(VS.85).aspx
see https://msdn.microsoft.com/library/aa382747(VS.85).aspx
for definitions of different data types
-->
<template tid="T_CorrelationEvent">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// Translates a <see cref="WildcardPattern"/> into a like-operand for WQL.
/// </summary>
/// <remarks>
/// Documentation on MSDN (http://msdn.microsoft.com/library/aa392263(VS.85).aspx) is
/// Documentation on MSDN (https://msdn.microsoft.com/library/aa392263(VS.85).aspx) is
/// 1) rather slim / incomplete
/// 2) sometimes incorrect (i.e. says that '=' is used for character ranges, when it should have said '-')
///
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/COM/ComTypeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void Initialize()

if ((funcdesc.wFuncFlags & 0x1) == 0x1)
{
// http://msdn.microsoft.com/library/ee488948.aspx
// https://msdn.microsoft.com/library/ee488948.aspx
// FUNCFLAGS -- FUNCFLAG_FRESTRICTED = 0x1:
// Indicates that the function should not be accessible from macro languages.
// This flag is intended for system-level functions or functions that type browsers should not display.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void CheckThrowException(int hresult, ref ExcepInfo excepInfo, Com
//
// But: Arguments are stored in pDispParams->rgvarg in reverse order, so the first
// parameter is the one with the highest index in the array
// http://msdn.microsoft.com/library/aa912367.aspx
// https://msdn.microsoft.com/library/aa912367.aspx
argErr = ((uint)args.Length) - argErr - 2;

// One or more of the arguments could not be coerced.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/MshMemberInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ public override bool Equals(object obj)

public override int GetHashCode()
{
// algorithm based on http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
// algorithm based on https://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
unchecked
{
int result = 61;
Expand Down
4 changes: 2 additions & 2 deletions src/System.Management.Automation/engine/PSVersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ IEnumerator IEnumerable.GetEnumerator()
}

/// <summary>
/// An implementation of semantic versioning (http://semver.org)
/// An implementation of semantic versioning (https://semver.org)
/// that can be converted to/from <see cref="System.Version"/>.
///
/// When converting to <see cref="Version"/>, a PSNoteProperty is
Expand Down Expand Up @@ -832,7 +832,7 @@ public int CompareTo(object version)

/// <summary>
/// Implement <see cref="IComparable{T}.CompareTo"/>.
/// Meets SymVer 2.0 p.11 http://semver.org/
/// Meets SymVer 2.0 p.11 https://semver.org/
/// </summary>
public int CompareTo(SemanticVersion value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ private static object[] unfoldTuple(ExecutionContext context, IScriptExtent erro

// uses "yield" from C# 2.0, which automatically creates
// an enumerable out of the loop code. See
// http://msdn.microsoft.com/msdnmag/issues/04/05/C20/ for
// https://msdn.microsoft.com/msdnmag/issues/04/05/C20/ for
// more details.
private static IEnumerable<string> enumerateContent(ExecutionContext context, IScriptExtent errorPosition, SplitImplOptions implOptions, object tuple)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ private void ScanBlockComment()
}

// Implementation of the Levenshtein Distance algorithm
// http://en.wikipedia.org/wiki/Levenshtein_distance
// https://en.wikipedia.org/wiki/Levenshtein_distance
private static int GetStringSimilarity(string first, string second)
{
Diagnostics.Assert(!string.IsNullOrEmpty(first) && !string.IsNullOrEmpty(second), "Caller never calls us with empty strings");
Expand Down
Loading

0 comments on commit 8635288

Please sign in to comment.