mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-24 22:55:21 -04:00
@@ -647,10 +647,13 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
||||
|
||||
protected string GetRedirectDomainHint(string requestUrl, string redirectUrl)
|
||||
{
|
||||
if (requestUrl.StartsWith(SiteLink) && !redirectUrl.StartsWith(SiteLink))
|
||||
var siteLinkUri = new HttpUri(SiteLink);
|
||||
var requestUri = new HttpUri(requestUrl);
|
||||
var redirectUri = new HttpUri(redirectUrl);
|
||||
|
||||
if (requestUri.Host.StartsWith(siteLinkUri.Host) && !redirectUri.Host.StartsWith(siteLinkUri.Host))
|
||||
{
|
||||
var uri = new HttpUri(redirectUrl);
|
||||
return uri.Scheme + "://" + uri.Host + "/";
|
||||
return redirectUri.Scheme + "://" + redirectUri.Host + "/";
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user