Skip to content

fix: double url-decoding in parseFromQuery - #8

Merged
carlohamalainen merged 1 commit into
starfederation:mainfrom
sectore:fix/double-decodes
Aug 18, 2026
Merged

carlohamalainen merged 1 commit into
starfederation:mainfrom
sectore:fix/double-decodes

Conversation

@sectore

@sectore sectore commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

WAI.queryString is already decoded. By re-decoding it in parseFromQuery a literal '+' turns into a space.

Before: a+b becomes a b
Now: a+b becomes a+b (as expected)

`WAI.queryString` is already decoded. By re-decoding it in `parseFromQuery` a literal '+' turns into a space.

Before: `a+b` becomes `a b`
Now: `a+b` becomes `a+b` (as expected)
@carlohamalainen
carlohamalainen merged commit bdd00b5 into starfederation:main Aug 18, 2026
3 checks passed
@carlohamalainen

Copy link
Copy Markdown
Collaborator

@sectore Thanks for catching the bug and also adding a test!

@sectore
sectore deleted the fix/double-decodes branch August 19, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants