mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
fix:website dictionary url decode url
This commit is contained in:
parent
7bbc70190e
commit
4098b61634
|
@ -10,7 +10,8 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
|||
QUrl url = requestJob->requestUrl();
|
||||
|
||||
// website dictionary iframe url
|
||||
url = QUrl( Utils::Url::queryItemValue( url, "url" ) );
|
||||
auto websiteUrl=QUrl::fromPercentEncoding( Utils::Url::queryItemValue( url, "url" ).toUtf8());
|
||||
url = QUrl( websiteUrl );
|
||||
QNetworkRequest request;
|
||||
request.setUrl( url );
|
||||
request.setAttribute(QNetworkRequest::RedirectPolicyAttribute,QNetworkRequest::RedirectPolicy::NoLessSafeRedirectPolicy);
|
||||
|
|
Loading…
Reference in a new issue