mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
+! Require "word" parameter to be passed to gdlookup:// requests, thus
skipping some erroneous empty requests from underparsed wikipedia articles.
This commit is contained in:
parent
fb27328334
commit
da663b426b
|
@ -51,9 +51,10 @@ sptr< Dictionary::DataRequest > ArticleNetworkAccessManager::getResource(
|
||||||
|
|
||||||
contentType = "text/html";
|
contentType = "text/html";
|
||||||
|
|
||||||
return ( url.queryItemValue( "notfound" ) != "1" ) ?
|
if ( word.size() ) // Require word to be passed
|
||||||
articleMaker.makeDefinitionFor( word, group ) :
|
return ( url.queryItemValue( "notfound" ) != "1" ) ?
|
||||||
articleMaker.makeNotFoundTextFor( word, group );
|
articleMaker.makeDefinitionFor( word, group ) :
|
||||||
|
articleMaker.makeNotFoundTextFor( word, group );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( url.scheme() == "bres" || url.scheme() == "gdau" ) &&
|
if ( ( url.scheme() == "bres" || url.scheme() == "gdau" ) &&
|
||||||
|
|
Loading…
Reference in a new issue