1
0
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:
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" ) else if ( n.namespaceURI() == m_NS && n.localName() == "url" )
{ {
if ( !n.text().startsWith( "http" ) || TomahawkUtils::whitelistedHttpResultHint( n.text() ) )
url = n.text(); url = n.text();
} }
else if ( n.namespaceURI() == m_NS && n.localName() == "location" ) else if ( n.namespaceURI() == m_NS && n.localName() == "location" )
{ {
if ( !n.text().startsWith( "http" ) || TomahawkUtils::whitelistedHttpResultHint( n.text() ) )
url = n.text(); url = n.text();
} }
} }