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