1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 14:54:50 -05:00

only fetch icons from http(s) with default ports

This commit is contained in:
Kyle Spearrin 2020-04-30 11:23:40 -04:00
parent fae4a335dc
commit 68901437ba

View File

@ -348,6 +348,13 @@ namespace Bit.Icons.Services
}
Cleanup(response);
if (location == null || (location.Scheme != "http" && location.Scheme != "https") ||
!location.IsDefaultPort)
{
return null;
}
var newResponse = await GetAsync(location);
if (newResponse != null)
{