-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
CGIRequestHandler behave incorrectly with query component consisting mutliple ? #69419
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
According to rfc3986, section 3.4: The query component is indicated by the first question The characters slash ("/") and question mark ("?") may represent data But for CGIRequestHandler, it uses the content after the last ? as |
Thanks for the report and patch. Would you be interested in making a new regression test for this bug? While we are fixing this code, we might as well simplify that whole “if” block to [rest, query] = rest.partition("?") |
I add a testcase but I worry it's not in the right format. Please review it. Partition is a good choice here. |
The test case looks okay to me. IMO using numbers for variable names (cgi_file4 etc) is a terrible idea, but I understand you are just conforming to the existing code :) |
New changeset 969afbf501af by Martin Panter in branch '3.4': New changeset ba1e3c112e42 by Martin Panter in branch '3.5': New changeset 88918f2a54df by Martin Panter in branch '3.5': New changeset 0f03023d4318 by Martin Panter in branch 'default': New changeset 3c006ee38287 by Martin Panter in branch 'default': |
New changeset b12b30dc8617 by Martin Panter in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: