mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
fix: forbidden window.location on website dictionary
This commit is contained in:
parent
2ed7990531
commit
499ac3c54c
|
@ -74,6 +74,7 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
||||||
|
|
||||||
// remove existed base tag
|
// remove existed base tag
|
||||||
articleString.remove( baseTag );
|
articleString.remove( baseTag );
|
||||||
|
articleString.replace( "window.location", "window.location1" );
|
||||||
|
|
||||||
QRegularExpression headTag( R"(<head\b.*?>)",
|
QRegularExpression headTag( R"(<head\b.*?>)",
|
||||||
QRegularExpression::CaseInsensitiveOption
|
QRegularExpression::CaseInsensitiveOption
|
||||||
|
|
Loading…
Reference in a new issue