summaryrefslogtreecommitdiff
path: root/src/webtab/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-06-06 17:22:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-06 17:22:58 +0200
commit0938ae36f96e5240e3cc72ba1a288b8001150412 (patch)
treeed18f007e27e6dd5d288988dc3ed2a82979b65c3 /src/webtab/protocolhandler.cpp
parentDon't Save Sessions When Closing Tabs from Logout (diff)
downloadrekonq-0938ae36f96e5240e3cc72ba1a288b8001150412.tar.xz
Get sure JS is properly detected and executed
Diffstat (limited to 'src/webtab/protocolhandler.cpp')
-rw-r--r--src/webtab/protocolhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp
index 2d5a36aa..4cf61be5 100644
--- a/src/webtab/protocolhandler.cpp
+++ b/src/webtab/protocolhandler.cpp
@@ -125,7 +125,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
// 11 is length of 'javascript:'
// fromPercentEncoding() is used to decode all the % encoded
// characters to normal, so that it is treated as valid javascript
- scriptSource = QUrl::fromPercentEncoding(_url.url().mid(11).toAscii());
+ scriptSource = QUrl::fromPercentEncoding(_url.url().mid(11).toUtf8());
if (scriptSource.isEmpty())
return false;
}