Ads block feature was also blocking data URIs. For example on Google Images search

This commit is contained in:
Julian Depetris Chauvin 2011-06-02 08:15:39 -03:00
parent adc4c56954
commit a0eb9a4ddd

View file

@ -88,7 +88,7 @@ QNetworkReply * ArticleNetworkAccessManager::createRequest( Operation op,
// getHostBase( refererUrl ).toUtf8().data() ); // getHostBase( refererUrl ).toUtf8().data() );
if ( !req.url().host().endsWith( refererUrl.host() ) && if ( !req.url().host().endsWith( refererUrl.host() ) &&
getHostBase( req.url() ) != getHostBase( refererUrl ) ) getHostBase( req.url() ) != getHostBase( refererUrl ) && !req.url().scheme().startsWith("data") )
{ {
printf( "Blocking element %s\n", req.url().toEncoded().data() ); printf( "Blocking element %s\n", req.url().toEncoded().data() );