From 87ae7899ae408304629ee5d1f09c6c8404a8db4a Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sat, 28 Oct 2023 13:22:21 +0800 Subject: [PATCH] fix: when path is / only ,there is no need to rearrange the parameters --- src/article_netmgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/article_netmgr.cc b/src/article_netmgr.cc index 62d2aef6..9d33abbc 100644 --- a/src/article_netmgr.cc +++ b/src/article_netmgr.cc @@ -110,7 +110,7 @@ QNetworkReply * ArticleNetworkAccessManager::getArticleReply( QNetworkRequest co if ( req.url().scheme() == "gdlookup" ) { QString path = url.path(); - if ( !path.isEmpty() ) { + if ( path.size()>1 ) { url.setPath( "" ); Utils::Url::addQueryItem( url, "word", path.mid( 1 ) );