summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-04 17:39:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-04 17:39:30 +0200
commitf8e2f61a48a5b9ff193ee18810cc8c0a52720ca7 (patch)
tree361926c8a6f61a36c9468db077b58ed7785d5b68 /src/protocolhandler.cpp
parentreply deleteLater.. (diff)
downloadrekonq-f8e2f61a48a5b9ff193ee18810cc8c0a52720ca7.tar.xz
Javascript protocol fix
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index 82d39225..27a09737 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -94,6 +94,9 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
if (_url.protocol() == QL1S("javascript"))
{
QString scriptSource = _url.authority();
+ if(scriptSource.isEmpty())
+ return false;
+
QVariant result = frame->evaluateJavaScript(scriptSource);
return true;
}