From 67470c418a527191cdfb65b7fc956694b8bdda46 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Wed, 28 Sep 2016 20:59:23 -0500 Subject: [PATCH] (GH-986) Remove extra forward slashes in url --- .../helpers/functions/Get-ChocolateyWebFile.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 index 90f893220c..d446fe6540 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -203,6 +203,9 @@ param( Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters + if ($url -ne $null) { $url = $url.Replace("//","/").Replace(":/","://") } + if ($url64bit -ne $null) { $url64bit = $url64bit.Replace("//","/").Replace(":/","://") } + $url32bit = $url # allow user provided values for checksumming