BlogEngine.NET icon indicating copy to clipboard operation
BlogEngine.NET copied to clipboard

Change the formdata builder in RTecaptchaValidator.cs

Open leofoe opened this issue 3 years ago • 1 comments

The formdata for the ReCaptCha is incorrect. Change var formdata = String.Format(HttpUtility.UrlEncode(this.PrivateKey), HttpUtility.UrlEncode(this.Response), HttpUtility.UrlEncode(this.RemoteIP)); to var formdata = string.Format("secret=" + this.PrivateKey + "&response=" + this.Response + "&remoteip=" + this.RemoteIP);

leofoe avatar Sep 09 '22 09:09 leofoe

While this works with the Contactform, it does not work for Comments.

leofoe avatar Sep 10 '22 14:09 leofoe