Skip to content

Commit

Permalink
Escape html content of package code preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 12, 2024
1 parent 3ab9839 commit 7bfec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PackageRegistryService/Pages/Components/Package.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int downloads
<hr />
<details>
<summary role=""button"" class=""primary"">Browse code (v{packageVersion})</summary>
<pre><code>{packageContent}</code></pre>
<pre><code>{System.Security.SecurityElement.Escape(packageContent)}</code></pre>
</details>
<hr />
<details>
Expand Down

0 comments on commit 7bfec50

Please sign in to comment.