Skip to content

reCAPTCHA Minimum Score validation will fail for the default value of 0.7 when the server is running with a non en-us configuration #706

Open
@vbaderks

Description

Scenario:

I have das-blog-core v8.0.1200 running on my Windows dev machine. My Windows language & region configuration is English (Netherlands) and regional format (Dutch). In this scenario the default value for the reCAPTCHA Minimum Score is initially set to 0,7 instead of 0.7. Which makes sense as the decimal symbol is a comma instead of a dot in the Netherlands. Pressing the save button without changing anything, triggers the validation that the value is incorrect. Changing the value manually to 0.7 works, but triggers a StackOverflowException (see issue #705)

Analysis of the generated HTML shows that the controller generates: <input type="text" value="0,7" ....> for this input field.

A good matching description of this problem is also described in: dotnet/aspnetcore#6566
It was however not easy to see how to apply to "correct" solution from this discussion to the das-blog-core source code.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions