Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Fix support for spaces in parameters #49

Merged
merged 4 commits into from
Feb 25, 2020
Merged

Conversation

samuelyallop-pusher
Copy link
Contributor

@samuelyallop-pusher samuelyallop-pusher commented Feb 24, 2020

Why

Methods whose parameters contain spaces and were interpolated into URI path segments were incorrectly encoded. For example, user ids containing spaces when passed to get_user_rooms had spaces encoded as '+' (suitable for query strings) not '%20'.

How

Replace use of CGI::escape in paths with a helper for path segments.


  • CHANGELOG updated if relevant?

@samuelyallop-pusher samuelyallop-pusher marked this pull request as ready for review February 24, 2020 16:47
Copy link
Contributor

@luismfonseca luismfonseca left a comment

Choose a reason for hiding this comment

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

LGTM!

@samuelyallop-pusher samuelyallop-pusher merged commit 5893bb3 into master Feb 25, 2020
@luismfonseca luismfonseca deleted the fix-space-encoding branch February 25, 2020 13:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants