feat: enforce urls to be https instead of http

This commit is contained in:
spiral
2022-12-29 00:54:32 +00:00
parent e11f4f23ab
commit 2fe83fc18c

View File

@@ -16,7 +16,7 @@ public static class MiscUtils
try
{
uri = new Uri(input);
if (!uri.IsAbsoluteUri || uri.Scheme != "http" && uri.Scheme != "https")
if (!uri.IsAbsoluteUri || uri.Scheme != "https")
return false;
}
catch (UriFormatException)