From 617cc588277acd436c7eaa78bc8ecc92f3633959 Mon Sep 17 00:00:00 2001 From: Matt Cooper Date: Fri, 13 May 2016 09:03:31 -0700 Subject: [PATCH] trim whitespace from URL A customer encountered hard-to-troubleshoot issues when accidentally including a trailing space. --- Tasks/NugetPublisher/NuGetPublisher.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tasks/NugetPublisher/NuGetPublisher.ps1 b/Tasks/NugetPublisher/NuGetPublisher.ps1 index dca58d53bc88..17b23a56fe42 100644 --- a/Tasks/NugetPublisher/NuGetPublisher.ps1 +++ b/Tasks/NugetPublisher/NuGetPublisher.ps1 @@ -82,7 +82,7 @@ if($connectedServiceName -and $useExternalFeed) elseif($feedName -and (-not $useExternalFeed)) { Write-Verbose "Using provided feed URL" - $nugetServer = $feedName + $nugetServer = $feedName.Trim() if (-not [URI]::IsWellFormedUriString($nugetServer, [UriKind]::Absolute)) { @@ -236,4 +236,4 @@ try finally { $env:NUGET_EXTENSIONS_PATH = $initialNuGetExtensionsPath -} \ No newline at end of file +}