mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-16 04:23:31 +00:00
Update AssemblyLoader.cs (Catswords.Phantomizer)
Update AssemblyLoader.cs (Catswords.Phantomizer)
This commit is contained in:
parent
17e3c8df46
commit
5665de20cf
|
|
@ -288,6 +288,10 @@ namespace Catswords.Phantomizer
|
|||
if (!Uri.CheckSchemeName(scheme))
|
||||
throw new ArgumentException("Invalid URI scheme name.", nameof(scheme));
|
||||
|
||||
if (!scheme.Equals(Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) &&
|
||||
!scheme.Equals(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase))
|
||||
throw new ArgumentException("Only HTTPS or HTTP schemes are supported.", nameof(scheme));
|
||||
|
||||
if (scheme.Equals(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase))
|
||||
Trace.TraceWarning("Warning: Adding 'http' to allowed URI schemes reduces security.");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user