Today I faced an in an existing plugin which was working earlier. During investigation, I found that this is caused by the “HttpUtility.UrlEncode(clientSecret)” as shown in below code snippet image
I found 2 ways to fix this issue
- User “System.Net.WebUtility.UrlEncode()” instead of “System.Web.HttpUtility.UrlEncode()”.
- Use “System.Uri.EscapeDataString() ” instead of “System.Web.HttpUtility.UrlEncode()”. as suggested in the this blog post by Nishant Rana.
Thanks-
Thanks! Saved my day!
Hi,
Where can i access this so I can change it? I have a plugin giving me this error on debug and I need to know where to change it please.
Thanks.