Skip to content

Commit

Permalink
URL-encode plugin hub author links
Browse files Browse the repository at this point in the history
Reported-by: afkinlady#0
  • Loading branch information
Nightfirecat committed Apr 17, 2024
1 parent 1a09e42 commit 226971b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/external-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ExternalPlugin = ({
<a href={`/plugin-hub/show/${internalName}`}>{displayName}</a>
</h5>
<h6 class="card-subtitle mb-2 text-muted">
<a href={`/plugin-hub/${author}`}>{author}</a>
<a href={`/plugin-hub/${encodeURIComponent(author)}`}>{author}</a>
</h6>
<p class="card-text">
{count > 0 && (
Expand Down
6 changes: 5 additions & 1 deletion src/routes/plugin-hub-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const PluginHubShow = ({ externalPlugin }) => {
<div>
<h5 class="card-title">{externalPlugin.displayName}</h5>
<h6 class="card-subtitle mb-2 text-muted">
<a href={`/plugin-hub/${externalPlugin.author}`}>
<a
href={`/plugin-hub/${encodeURIComponent(
externalPlugin.author
)}`}
>
{externalPlugin.author}
</a>
</h6>
Expand Down

0 comments on commit 226971b

Please sign in to comment.