From 0d25ed2921c9d7d94076425340cadda3ff63b162 Mon Sep 17 00:00:00 2001 From: chibidev Date: Wed, 19 Jul 2017 19:24:03 +0200 Subject: [PATCH] #1575 - Fix invalid URL handling --- src/Jackett/Indexers/BaseIndexer.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Jackett/Indexers/BaseIndexer.cs b/src/Jackett/Indexers/BaseIndexer.cs index 760234d9d..4ca7bedf4 100644 --- a/src/Jackett/Indexers/BaseIndexer.cs +++ b/src/Jackett/Indexers/BaseIndexer.cs @@ -137,12 +137,8 @@ namespace Jackett.Indexers if (!configData.SiteLink.Value.EndsWith("/", StringComparison.Ordinal)) configData.SiteLink.Value += "/"; - var match = Regex.Match(configData.SiteLink.Value, "^https?:\\/\\/[\\w\\-\\/\\.]+$"); - if (!match.Success) - { - throw new Exception(string.Format("\"{0}\" is not a valid URL.", configData.SiteLink.Value)); - } - + // check whether the site link is well-formatted + var siteUri = new Uri(configData.SiteLink.Value); SiteLink = configData.SiteLink.Value; }