Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode username on callback #3656

Merged
merged 1 commit into from
Feb 22, 2023
Merged

encode username on callback #3656

merged 1 commit into from
Feb 22, 2023

Conversation

iBicha
Copy link
Contributor

@iBicha iBicha commented Feb 21, 2023

Follow up to #3603, I realized the username is not encoded

@iBicha iBicha requested a review from a team as a code owner February 21, 2023 20:25
@iBicha iBicha requested review from unixfox and removed request for a team February 21, 2023 20:25
@unixfox unixfox merged commit 0995e04 into iv-org:master Feb 22, 2023
iBicha added a commit to iBicha/playlet that referenced this pull request Feb 22, 2023
@SamantazFox
Copy link
Member

Oh, that wasn't needed! The HTTP::Params class already have all the logic needed to encode the values.

@iBicha
Copy link
Contributor Author

iBicha commented Feb 22, 2023

Oh, that wasn't needed! The HTTP::Params class already have all the logic needed to encode the values.

I thought so too, but the encoding was replacing space with "+". This made it not possible to differentiate between a username that has a space in it or has a "+" in it. e.g. "user name" and "user+name", they both end up being "user+name"

This makes the arg encoded twice, but that's also true for the token anyway.

@iBicha iBicha deleted the feature/auth-token-username branch May 5, 2023 18:13
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.

3 participants