Skip to content

Commit 42f8f45

Browse files
authored
Merge 8b6e9f0 into 8965bbe
2 parents 8965bbe + 8b6e9f0 commit 42f8f45

File tree

2 files changed

+3
-4
lines changed
  • src
    • BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Validators
    • IdentityServer/Aguacongas.IdentityServer.Store/Entity

2 files changed

+3
-4
lines changed

src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Validators/UriValidator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
// Copyright (c) 2022 @Olivier Lefebvre
33
using FluentValidation;
44
using FluentValidation.Validators;
5-
using System.Diagnostics.CodeAnalysis;
65
using System.Text.RegularExpressions;
76

87
namespace Aguacongas.TheIdServer.BlazorApp.Validators
98
{
109
public partial class UriValidator<T> : PropertyValidator<T, string>
1110
{
12-
[GeneratedRegex("^(http|https)://.+")]
11+
[GeneratedRegex("^.+://.+")]
1312
private static partial Regex _urlRegex();
1413

1514
public override string Name => $"UriValidatorOf{typeof(T).Name}";

src/IdentityServer/Aguacongas.IdentityServer.Store/Entity/ClientUri.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ClientUri : IAuditable, IClientSubEntity
3535
/// The URI.
3636
/// </value>
3737
[Required]
38-
[Url]
38+
[RegularExpression("^.+://.+")]
3939
[MaxLength(2000)]
4040
public string Uri { get; set; }
4141

@@ -45,7 +45,7 @@ public class ClientUri : IAuditable, IClientSubEntity
4545
/// <value>
4646
/// The sanetized cors URI.
4747
/// </value>
48-
[Url]
48+
[RegularExpression("^.+://.+")]
4949
[MaxLength(2000)]
5050
public string SanetizedCorsUri { get; set; }
5151

0 commit comments

Comments
 (0)