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

URL-escape polyline-encoded overlay #26

Merged
merged 2 commits into from
May 15, 2016
Merged

URL-escape polyline-encoded overlay #26

merged 2 commits into from
May 15, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented May 15, 2016

Fixed an issue in which polyline-encoded strings containing ? would truncate the URL path, putting the rest of the path into the query string, causing the image request to fail due to a “missing access token”. Example:

https://api.mapbox.com/v4/justin.tm2-basemap/path-1+555555-1.0+555555-0.0(_atqG~bsgV?~reK)/-122.0,45.0,6/320x480@2x.png?access_token=…

This change applies a stricter allowed character set to path components.

/cc @tmcw

1ec5 added 2 commits May 15, 2016 15:31
Fixed an issue in which polyline-encoded strings containing ? would truncate the URL path, putting the rest of the path into the query string, causing the image request to fail due to a “missing access token”.
This character set is only ever used inside function-style path components delimited by parentheses.
@1ec5 1ec5 self-assigned this May 15, 2016
@1ec5 1ec5 added the bug label May 15, 2016
@1ec5 1ec5 merged commit 325496b into master May 15, 2016
@1ec5 1ec5 deleted the 1ec5-escape-polyline branch May 15, 2016 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant