mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
* Don't blindly accept all HTTP result-hints in an XSPF.
This commit is contained in:
@@ -276,11 +276,13 @@ XSPFLoader::gotBody()
|
|||||||
}
|
}
|
||||||
else if ( n.namespaceURI() == m_NS && n.localName() == "url" )
|
else if ( n.namespaceURI() == m_NS && n.localName() == "url" )
|
||||||
{
|
{
|
||||||
url = n.text();
|
if ( !n.text().startsWith( "http" ) || TomahawkUtils::whitelistedHttpResultHint( n.text() ) )
|
||||||
|
url = n.text();
|
||||||
}
|
}
|
||||||
else if ( n.namespaceURI() == m_NS && n.localName() == "location" )
|
else if ( n.namespaceURI() == m_NS && n.localName() == "location" )
|
||||||
{
|
{
|
||||||
url = n.text();
|
if ( !n.text().startsWith( "http" ) || TomahawkUtils::whitelistedHttpResultHint( n.text() ) )
|
||||||
|
url = n.text();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user