diff options
| author | Jose Carlos Norte <[email protected]> | 2009-03-02 00:03:21 +0000 |
|---|---|---|
| committer | Jose Carlos Norte <[email protected]> | 2009-03-02 00:03:21 +0000 |
| commit | 639dd839afa2fe528027b3138d3d4d254491eef5 (patch) | |
| tree | e6efe80d93042f14c677c191d2cb6916a5ef21d5 /src/dolphinviewcontainer.cpp | |
| parent | 9c095f56fddc86c6f916dbae69ce1c4bea2071e3 (diff) | |
Fixed a security bug in dolphin when handling malformed http urls.
svn path=/trunk/KDE/kdebase/apps/; revision=933947
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 95b16448a..530055370 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -41,6 +41,7 @@ #include <konqmimedata.h> #include <konq_fileitemcapabilities.h> #include <konq_operations.h> +#include <kshell.h> #include <kurl.h> #include <kurlcombobox.h> #include <krun.h> @@ -406,7 +407,9 @@ void DolphinViewContainer::restoreView(const KUrl& url) showErrorMessage(i18nc("@info:status", "Protocol not supported by Dolphin, Konqueror has been launched")); } - const QString command = app + ' ' + url.pathOrUrl(); + + QString secureUrl = KShell::quoteArg(url.pathOrUrl()); + const QString command = app + ' ' + secureUrl; KRun::runCommand(command, app, app, this); } else { showErrorMessage(i18nc("@info:status", "Invalid protocol")); |
