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

Uri Parameter are not escaped #19

Open
KN4CK3R opened this issue Apr 23, 2017 · 0 comments
Open

Uri Parameter are not escaped #19

KN4CK3R opened this issue Apr 23, 2017 · 0 comments

Comments

@KN4CK3R
Copy link
Contributor

KN4CK3R commented Apr 23, 2017

The method InfluxDbClientBase.BuildUri escapes username and password but not the extra parameters.

I ran a select query which contained the character ':'. The server responed with a parsing error. Then I changed the code to HttpUtility.UrlEncode(param.Value) but it didn't work because the ':' was not escaped. Then I changed HttpUtility.UrlEncode to use Uri.EscapeDataString. Now everything was escaped correctly and the server accepted the query.

I haven't created a pull request because I'm not sure if this was the correct way to go.

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

No branches or pull requests

1 participant