From dcfee63b2221ecab788476c729477a0618fad644 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Mon, 5 Jun 2023 20:58:04 +0800 Subject: [PATCH] fix: wikipedia query parameter is incorrect --- src/dict/mediawiki.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict/mediawiki.cc b/src/dict/mediawiki.cc index 944bd033..6b372a37 100644 --- a/src/dict/mediawiki.cc +++ b/src/dict/mediawiki.cc @@ -128,7 +128,7 @@ MediaWikiWordSearchRequest::MediaWikiWordSearchRequest( wstring const & str, GlobalBroadcaster::instance()->addWhitelist( reqUrl.host() ); - Utils::Url::addQueryItem( reqUrl, "apfrom", QString::fromStdU32String( str ).replace( '+', "%2B" ) ); + Utils::Url::addQueryItem( reqUrl, "apprefix", QString::fromStdU32String( str ).replace( '+', "%2B" ) ); netReply = std::shared_ptr(mgr.get( QNetworkRequest( reqUrl ) ));