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 space issue in static files #711

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

hhaensel
Copy link
Member

This PR addresses an issue raised in Discord that static files that contain spaces are not correctly served.

It turns out that for checking the existence of a file the uri is currently not unescaped.

The slightly unsatisfying part of this PR is that if the route is not a file, the unescaping is done twice; once for the file check and once in match_routes(). The alternative would be to change the req.target at the first entry point and then remove all unescaping at other places. But that sounds like being an overkill given the short amount of time for unescaping.

@essenciary
Copy link
Member

Thank you!

@essenciary essenciary merged commit f67ca74 into GenieFramework:master Apr 22, 2024
8 of 11 checks passed
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.

2 participants