You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NuGetGallery/Views/Packages/Manage.cshtml
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,19 +80,20 @@
80
80
var strings_RemovingOrganization ="@Html.Raw(Strings.ManagePackageOwners_RemovingOrganization)";
81
81
var strings_RemovingSelf ="@Html.Raw(Strings.ManagePackageOwners_RemovingSelf)";
82
82
83
-
// We are using JsonConvert instead of Json to serialize JSON in this CSHTML file because otherwise, with a large number of versions, this will overflow the maximum output JSON length limit for Json.
83
+
// We are using ToJson (which uses Newtonsoft.Json) instead of Json.Encode to serialize JSON in this CSHTML
84
+
// file because otherwise, with a large number of versions, this will overflow the maximum output JSON length limit for Json.
84
85
85
86
// Set up delete section
86
-
var versionListedState = @Html.Raw(JsonConvert.SerializeObject(Model.VersionListedStateDictionary));
87
+
var versionListedState = @Html.ToJson(Model.VersionListedStateDictionary);
87
88
88
89
// Set up deprecation section
89
90
var strings_SelectAlternateVersionOption ="Latest";
90
-
var versionDeprecationState = @Html.Raw(JsonConvert.SerializeObject(Model.VersionDeprecationStateDictionary));
91
+
var versionDeprecationState = @Html.ToJson(Model.VersionDeprecationStateDictionary);
0 commit comments