Skip to content

Commit

Permalink
Fix malformed URL in redirect after package upload (#3915)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierdecoster committed May 11, 2017
1 parent cb67641 commit 9576c3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/NuGetGallery/Controllers/PackagesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,11 @@ await _auditingService.SaveAuditRecordAsync(
TempData["Message"] = String.Format(
CultureInfo.CurrentCulture, Strings.SuccessfullyUploadedPackage, package.PackageRegistration.Id, package.Version);

return RedirectToRoute(RouteName.DisplayPackage, new { package.PackageRegistration.Id, package.NormalizedVersion });
return RedirectToRoute(RouteName.DisplayPackage, new
{
id = package.PackageRegistration.Id,
version = package.NormalizedVersion
});
}

private async Task<PackageArchiveReader> SafeCreatePackage(NuGetGallery.User currentUser, Stream uploadFile)
Expand Down

0 comments on commit 9576c3b

Please sign in to comment.