-
-
Notifications
You must be signed in to change notification settings - Fork 32k
SimpleHTTPRequestHandler incorrectly handles trailing escaped slash #134098
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
Comments
Other effect of this bug -- a percent-encoded trailing slash is ignored after non-directory path (should return status NOT_FOUND). |
since you mentioned request handling, what do you think about making |
serhiy-storchaka
added a commit
that referenced
this issue
May 17, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 17, 2025
…equestHandler (pythonGH-134099) (cherry picked from commit 2f1ecb3) Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 17, 2025
…equestHandler (pythonGH-134099) (cherry picked from commit 2f1ecb3) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
May 17, 2025
…RequestHandler (GH-134099) (GH-134124) (cherry picked from commit 2f1ecb3) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
May 17, 2025
…RequestHandler (GH-134099) (GH-134123) (cherry picked from commit 2f1ecb3) Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
For path to directory which does not end with slash ("/"), SimpleHTTPRequestHandler returns status MOVED_PERMANENTLY with redirection to new path that ends with slash. Slashes can be percent-encoded, although this is not necessary. But the code that checks for the trailing slash does not take this into account (in two place).
Linked PRs
The text was updated successfully, but these errors were encountered: