From 499ac3c54c1204dd6e1604c3de312198e5e75e56 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Thu, 13 Jul 2023 11:50:20 +0800 Subject: [PATCH] fix: forbidden window.location on website dictionary --- src/iframeschemehandler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/iframeschemehandler.cc b/src/iframeschemehandler.cc index b3bbdd7d..eef0843b 100644 --- a/src/iframeschemehandler.cc +++ b/src/iframeschemehandler.cc @@ -74,6 +74,7 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) // remove existed base tag articleString.remove( baseTag ); + articleString.replace( "window.location", "window.location1" ); QRegularExpression headTag( R"()", QRegularExpression::CaseInsensitiveOption