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

Escape double slash in path (except for 'https?://') #104

Merged
merged 2 commits into from
Jun 1, 2018

Conversation

mxtthias
Copy link
Contributor

This is needed since Flask treats all slashes as path separators and
unescapes them.

This is needed since Flask treats all slashes as path separators and
unescapes them.
@mxtthias mxtthias requested a review from niklasl May 30, 2018 12:09
@niklasl
Copy link
Member

niklasl commented May 31, 2018

The problem appears to be a double error by Apache and WSGI(!). See this comment for a solution: pallets/flask#900 (comment)

If we deem this not feasible (at this time), let's merge this and note the proper fix (to also handle single escaped slashes).

niklasl
niklasl previously approved these changes May 31, 2018
Copy link
Member

@niklasl niklasl left a comment

Choose a reason for hiding this comment

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

LGTM (especially given that an ideal fix might be too cumbersome right now)

Copy link
Contributor

@oBlissing oBlissing left a comment

Choose a reason for hiding this comment

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

Approving based on @niklasl approval.

@oBlissing oBlissing merged commit 7d58e9a into release/1.0.0 Jun 1, 2018
@oBlissing oBlissing deleted the feature/handle-double-slash-in-path branch June 1, 2018 09:17
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