Merge branch 'master' of gitorious.org:goldendict/goldendict

This commit is contained in:
Konstantin Isakov 2011-06-02 19:29:50 -07:00
commit 74ff3b80b5

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