mirror of
https://github.com/bitwarden/server.git
synced 2025-05-30 07:44:50 -05:00
only fetch icons from http(s) with default ports
This commit is contained in:
parent
fae4a335dc
commit
68901437ba
@ -348,6 +348,13 @@ namespace Bit.Icons.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
Cleanup(response);
|
Cleanup(response);
|
||||||
|
|
||||||
|
if (location == null || (location.Scheme != "http" && location.Scheme != "https") ||
|
||||||
|
!location.IsDefaultPort)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var newResponse = await GetAsync(location);
|
var newResponse = await GetAsync(location);
|
||||||
if (newResponse != null)
|
if (newResponse != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user