summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-11-09 12:15:42 +0100
committerSimon Rettberg2020-11-09 12:15:42 +0100
commitf3d08514f27e3371387449e2ed064165da3cbee4 (patch)
tree037f0dca1db376100782cd7e681939a98f2e817a
parentAllow blacklist and whitelist at the same time. (diff)
downloadslxbrowser-29r2.tar.gz
slxbrowser-29r2.tar.xz
slxbrowser-29r2.zip
Remove javascript: prefix in onclick=""v29r2v29r1
-rw-r--r--src/slxbrowser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slxbrowser.cpp b/src/slxbrowser.cpp
index 8cc8749..9ea279e 100644
--- a/src/slxbrowser.cpp
+++ b/src/slxbrowser.cpp
@@ -126,7 +126,7 @@ void SlxBrowser::loadFinished(bool ok)
} else {
_browser->page()->mainFrame()->setHtml("<html><body style='background:blue;color:white'><br><br>"
"<center><h1>Page Load Error</h1><pre id='content'></pre><br>"
- "<p><a href='#' onclick='javascript:window.history.back()'>Back</a></p>"
+ "<p><a href='#' onclick='window.history.back()'>Back</a></p>"
"</center></body></html>");
QWebElement el = _browser->page()->mainFrame()->documentElement().findFirst("#content");
QString str;