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:
parent
aecffbd250
commit
9cdc024956
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user