Browse Source

Update the NWebsec internal bits to apply a bug fix

pull/39/merge
David McCullough 10 years ago
committed by Kévin Chalet
parent
commit
1e7882d59f
  1. 2
      external/NWebsec.Core/HttpHeaders/Csp/CspUriSource.cs

2
external/NWebsec.Core/HttpHeaders/Csp/CspUriSource.cs

@ -12,7 +12,7 @@ namespace NWebsec.Core.HttpHeaders.Csp
{
private const string HostRegex = @"^(\*\.)?([\p{Ll}\p{Lu}0-9\-]+)(\.[\p{Ll}\p{Lu}0-9\-]+)*$";
private static readonly string SchemeOnlyRegex = "^[a-zA-Z]*[a-zA-Z0-9" + Regex.Escape("+.-") + "]:$";
private static readonly string[] KnownSchemes = { "http", "https", "data", "ws", "wss" };
private static readonly string[] KnownSchemes = { "http", "https", "ws", "wss" };
private readonly string _source;
private CspUriSource(string source)

Loading…
Cancel
Save