From 2fe83fc18cea01bf94dc34a75c70b67474a2b32f Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 29 Dec 2022 00:54:32 +0000 Subject: [PATCH] feat: enforce urls to be https instead of http --- PluralKit.Core/Utils/MiscUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Utils/MiscUtils.cs b/PluralKit.Core/Utils/MiscUtils.cs index 2d6d0b43..d0de0355 100644 --- a/PluralKit.Core/Utils/MiscUtils.cs +++ b/PluralKit.Core/Utils/MiscUtils.cs @@ -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)