mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
Ads block feature was also blocking data URIs. For example on Google Images search
This commit is contained in:
parent
adc4c56954
commit
a0eb9a4ddd
|
@ -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() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue