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

Modified escaping of query string parameters #1316

Merged
merged 2 commits into from
Oct 4, 2020

Conversation

paulgartner1
Copy link

@paulgartner1 paulgartner1 commented Jun 2, 2020

fixes #1263

Escape query strings using Uri.EscapeDataString instead of Uri.EscapeUriString, this should correctly escape all URI reserve characters so they can be used as literals in query strings.

  • Updated failing test
  • Added specific unit test

@dsyme
Copy link
Contributor

dsyme commented Jun 2, 2020

Thanks! This looks like exactly the fix we need.

@cartermp @ovatsus @tpetricek @colinbull If you get a moment could you review?

@ovatsus
Copy link

ovatsus commented Jun 2, 2020

EscapeDataString has problems with large payloads, that's why we changed it, see #1112

@ovatsus
Copy link

ovatsus commented Jun 2, 2020

Ah, nevermind, that was for the body, which you are not changing

@@ -33,7 +33,6 @@ Xml,TypeInference.xml,false,false,,false,
Xml,SampleAzureServiceManagement.xml,false,false,,true,
Xml,TimeSpans.xml,false,false,,true,
Xml,,false,false,,false,po.xsd
Xml,,false,false,,false,http://europa.eu/rapid/conf/RSS20.xsd
Copy link

Choose a reason for hiding this comment

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

Was this removed by accident?

Copy link
Author

Choose a reason for hiding this comment

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

I removed it as RSS20.xsd does not exist at url anymore and was causing unit tests to fail.

I could not find an updated url.
Appologies I should have updated the PR comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

That URL is now retuning a failure, I think it can be removed

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.

Inadequate escaping of query parameters
4 participants