1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

disable subdomain normalization

This commit is contained in:
Kyle Spearrin 2018-07-30 21:22:50 -04:00
parent aecffbd250
commit 9cdc024956

View File

@ -42,10 +42,11 @@ namespace Bit.Icons.Controllers
}
var domain = uri.Host;
if(DomainName.TryParseBaseDomain(domain, out var baseDomain))
{
domain = baseDomain;
}
// Convert sub.domain.com => domain.com
//if(DomainName.TryParseBaseDomain(domain, out var baseDomain))
//{
// domain = baseDomain;
//}
var mappedDomain = _domainMappingService.MapDomain(domain);
if(!_iconsSettings.CacheEnabled || !_memoryCache.TryGetValue(mappedDomain, out Icon icon))