+! Require "word" parameter to be passed to gdlookup:// requests, thus

skipping some erroneous empty requests from underparsed wikipedia articles.
This commit is contained in:
Konstantin Isakov 2009-04-09 11:35:45 +00:00
parent fb27328334
commit da663b426b

View file

@ -51,9 +51,10 @@ sptr< Dictionary::DataRequest > ArticleNetworkAccessManager::getResource(
contentType = "text/html";
return ( url.queryItemValue( "notfound" ) != "1" ) ?
articleMaker.makeDefinitionFor( word, group ) :
articleMaker.makeNotFoundTextFor( word, group );
if ( word.size() ) // Require word to be passed
return ( url.queryItemValue( "notfound" ) != "1" ) ?
articleMaker.makeDefinitionFor( word, group ) :
articleMaker.makeNotFoundTextFor( word, group );
}
if ( ( url.scheme() == "bres" || url.scheme() == "gdau" ) &&