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

Remove seemingly-unnecessary urldecoding #2906

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

bhearsum
Copy link
Contributor

@bhearsum bhearsum commented Jul 5, 2023

I added this a Very Long Time Ago in adb45b6. I don't see anything in there nor the bug it references that suggests it was needed, nor do any tests fail if it is removed. There's no data in this field that should be urlencoded, and even if there was, decoding is already handled by Flask/Werkzeug...so we should be able to safely remove this.

@@ -110,7 +104,7 @@ def getQueryFromURL(url):
if "systemCapabilities" in query:
query.update(getSystemCapabilities(url["systemCapabilities"]))
del query["systemCapabilities"]
query["osVersion"] = unquote(query["osVersion"])
query["osVersion"] = query["osVersion"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Just remove the line? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

errrrrrrrrm, yes

I added this a Very Long Time Ago in mozilla-releng@adb45b6. I don't see anything in there that suggests it was needed, nor do any tests fail if it is removed. There's no data in this field that _should_ be urlencoded, and even if there was, decoding is already handled by Flask/Werkzeug...so we should be able to safely remove this.
Copy link
Contributor

@jcristau jcristau left a comment

Choose a reason for hiding this comment

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

👍

@bhearsum bhearsum merged commit 036d4a9 into mozilla-releng:main Jul 5, 2023
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