diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 17:39:30 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 17:39:30 +0200 | 
| commit | f8e2f61a48a5b9ff193ee18810cc8c0a52720ca7 (patch) | |
| tree | 361926c8a6f61a36c9468db077b58ed7785d5b68 | |
| parent | reply deleteLater.. (diff) | |
| download | rekonq-f8e2f61a48a5b9ff193ee18810cc8c0a52720ca7.tar.xz | |
Javascript protocol fix
| -rw-r--r-- | src/protocolhandler.cpp | 3 | 
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;      } | 
