1
0
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:
Christian Muehlhaeuser
2013-09-03 23:41:47 +02:00
parent a546268c7a
commit 380368380e

View File

@@ -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();
}
}