Skip to content

Commit

Permalink
now request service icons requires untrusted redir
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Jun 23, 2024
1 parent 228607e commit 6eed1b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noson/src/sonossystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ std::string System::GetLogoForService(const SMServicePtr& service, const std::st

const std::string& typeId = service->GetServiceType();
for (ElementList::const_iterator it = logos.begin(); it != logos.end(); ++it)
if ((*it)->GetKey() == typeId && (*it)->GetAttribut("placement") == placement)
if ((*it)->GetKey() == typeId && (*it)->GetAttribut("placement").find(placement) != std::string::npos)
return ((*it)->data());
return Element::Nil().data();
}
Expand Down Expand Up @@ -864,7 +864,7 @@ void System::CB_ContentDirectory(void* handle)
bool System::LoadMSLogo(ElementList& logos)
{
WSRequest request(URIParser(URI_MSLOGO));
WSResponse response(request);
WSResponse response(request, 1, false, true);
if (!response.IsSuccessful())
return false;

Expand Down

0 comments on commit 6eed1b9

Please sign in to comment.