mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: enforce urls to be https instead of http
This commit is contained in:
parent
e11f4f23ab
commit
2fe83fc18c
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public static class MiscUtils
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
uri = new Uri(input);
|
uri = new Uri(input);
|
||||||
if (!uri.IsAbsoluteUri || uri.Scheme != "http" && uri.Scheme != "https")
|
if (!uri.IsAbsoluteUri || uri.Scheme != "https")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
catch (UriFormatException)
|
catch (UriFormatException)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue