Commit 6ffa2e63 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

In light of recent discussion on mailing list, make it explicit that opening a...

In light of recent discussion on mailing list, make it explicit that opening a plugin from a link should never allow the plugin to be auto-submitted.
parent a9e68fac
......@@ -324,7 +324,8 @@ bool RKHTMLWindow::handleRKWardURL (const KUrl &url, RKHTMLWindow *window) {
QString path = url.path ();
if (path.startsWith ('/')) path = path.mid (1);
int sep = path.indexOf ('/');
RKComponentMap::invokeComponent (path.left (sep), path.mid (sep+1).split ('\n', QString::SkipEmptyParts));
// NOTE: These links may originate externally, even from untrusted sources. The submit mode *must* remain "ManualSubmit" for this reason!
RKComponentMap::invokeComponent (path.left (sep), path.mid (sep+1).split ('\n', QString::SkipEmptyParts), RKComponentMap::ManualSubmit);
return true;
} else {
if (url.host () == "rhelp") {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment