Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rstrip slashes from url on appservice #6306

Merged
merged 6 commits into from
Oct 31, 2019
Merged

Conversation

Half-Shot
Copy link
Collaborator

@Half-Shot Half-Shot commented Oct 31, 2019

On many occasions users have written registration files that contain an ending slash. Synapse already prefixes every request with a slash and this tends to trip up users more often than not. It seems wise here to just remove any trailing slashes on initiation.

And joy of joys, this fixes #3523

On many occasions users have written registration files that contain an ending slash. Synapse already prefixes every request with a slash and this tends to trip up users more often than not. It seems wise here to just remove any trailing slashes on initiation.
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

lgtm once CI is fixed

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

oh no I had opinions

synapse/appservice/__init__.py Outdated Show resolved Hide resolved
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

LGTM!

@anoadragon453 anoadragon453 merged commit 42e707c into develop Oct 31, 2019
@anoadragon453 anoadragon453 deleted the hs/rstrip-as-url branch October 31, 2019 17:32
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '42e707c66':
  rstrip slashes from url on appservice (#6306)
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