mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-31 11:54:24 +01:00
Convert in UriAttribute use invariant culture
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
namespace BTCPayServer.Validation
|
||||
{
|
||||
@@ -9,7 +10,7 @@ namespace BTCPayServer.Validation
|
||||
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||
{
|
||||
Uri uri;
|
||||
bool valid = Uri.TryCreate(Convert.ToString(value), UriKind.Absolute, out uri);
|
||||
bool valid = Uri.TryCreate(Convert.ToString(value, CultureInfo.InvariantCulture), UriKind.Absolute, out uri);
|
||||
|
||||
if (!valid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user