Skip to content

fix(nuget): fix double URL encoding for non-ASCII package names; test [Nuget MyGet]#11795

Merged
PyvesB merged 3 commits intobadges:masterfrom
AlkayidAli:fix/nuget-v3-unicode-package-name
Apr 12, 2026
Merged

fix(nuget): fix double URL encoding for non-ASCII package names; test [Nuget MyGet]#11795
PyvesB merged 3 commits intobadges:masterfrom
AlkayidAli:fix/nuget-v3-unicode-package-name

Conversation

@AlkayidAli
Copy link
Copy Markdown
Contributor

packageName was passed through encodeURIComponent() before being added to searchParams. Since got also encodes searchParams values, characters like ò (%C3%B2) were double-encoded (%25C3%25B2), causing NuGet's search API to receive the literal percent-encoded string and return 0 hits.

Fixes #7942

packageName was passed through encodeURIComponent() before being added
to searchParams. Since got also encodes searchParams values, characters
like ò (%C3%B2) were double-encoded (%25C3%25B2), causing NuGet's search
API to receive the literal percent-encoded string and return 0 hits.

Fixes badges#7942
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Messages
📖 ✨ Thanks for your contribution to Shields, @AlkayidAli!

Generated by 🚫 dangerJS against f6d32f5

@PyvesB PyvesB changed the title fix(nuget): fix double URL encoding for non-ASCII package names fix(nuget): fix double URL encoding for non-ASCII package names; test [Nugest MyGet] Apr 11, 2026
@PyvesB PyvesB changed the title fix(nuget): fix double URL encoding for non-ASCII package names; test [Nugest MyGet] fix(nuget): fix double URL encoding for non-ASCII package names; test [Nuget MyGet] Apr 11, 2026
@PyvesB PyvesB added the service-badge New or updated service badge label Apr 11, 2026
AlkayidAli and others added 2 commits April 11, 2026 19:33
Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
Copy link
Copy Markdown
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Love these PRs where code is removed (tests aside) to fix bugs 😄

@PyvesB PyvesB added this pull request to the merge queue Apr 12, 2026
Merged via the queue into badges:master with commit f8ca76f Apr 12, 2026
19 checks passed
@AlkayidAli
Copy link
Copy Markdown
Contributor Author

happy to help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

service-badge New or updated service badge

Development

Successfully merging this pull request may close these issues.

2 participants