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

Url encoding of '$' not working #36

Open
jolySoft opened this issue Jun 11, 2014 · 2 comments · May be fixed by #56
Open

Url encoding of '$' not working #36

jolySoft opened this issue Jun 11, 2014 · 2 comments · May be fixed by #56
Labels

Comments

@jolySoft
Copy link

When using the LinqToQueryableAttibute in the webApi2 solution any url encoded characters are not decoded:

Within LinqToQueryable.cs (27) => when the query string is pulled it is not checked for any encoding.

Then LinqToQueryable.cs (35) => this is passed to extension method LinqToQuerystring in an encoded state

Then Extensions.cs(47) => the querystring is split based upon '$' but '$' is still %24 so odataQueries count is 0

*** FIX ***

I got the code locally => added a reference to System.Web and in the LinqToQueryable.cs at line 34 did this:

var queryString = HttpUtility.UrlDecode(actionExecutedContext.Request.RequestUri.Query);

Works for both now.

@beyond-code-github
Copy link
Owner

Thanks for the report, and sorry for the delay in responding. I hope to look at this in the next week or two.

@ccoulson
Copy link

ccoulson commented Mar 5, 2015

+1 Experiencing this too

ccoulson added a commit to Visigo/LinqToQuerystring that referenced this issue Mar 5, 2015
@ccoulson ccoulson linked a pull request Mar 5, 2015 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants