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

Fix + symbol appearing in changeset comments from external tools #10766

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Feb 12, 2025

Closes #10761

@tyrasd tyrasd added this to the v2.32 milestone Feb 12, 2025
Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

Thanks. I expanded this a bit to add tests, and make the matching utilQsString method also use URLSearchParams instead of the homebrew construction of the params string. Further, I added to the API.md documentation the explicit format the hash parameters are to be supplied.

tyrasd added a commit to tyrasd/openstreetmap-website that referenced this pull request Feb 12, 2025
the current version of iD (v2.31, before the fix for https://github.com/openstreetmap/iD/issue/10761: openstreetmap/iD#10766), does not fully support `x-www-form-urlencoded` "query-style" strings in the hash: Specifically, spaces encoded as `+` will not be decoded back to ` `.

This workaround essentially temporarily reverts the behaviour of the website to the state before openstreetmap#5592, and can be dropped again with the next minor version upgrade of iD (`v2.32`).
@tyrasd tyrasd merged commit 6328776 into develop Feb 12, 2025
4 checks passed
@tyrasd tyrasd deleted the kh/plus branch February 12, 2025 13: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.

When changeset comment is pre-populated from URL parameter, spaces are replaced with + characters
2 participants