Skip to content

Change the formdata builder in RTecaptchaValidator.cs #256

Open

Description

@leofoe

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);

Activity

  1. leofoe commented on Sep 10, 2022

    @leofoe
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions