From kde-commits Fri Nov 26 18:52:42 2010 From: =?utf-8?q?Jonas=20Emanuel=20M=C3=BCller?= Date: Fri, 26 Nov 2010 18:52:42 +0000 To: kde-commits Subject: playground/network/videocatcher/src Message-Id: <20101126185242.BE349AC8A2 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129079761813155 SVN commit 1201102 by jonasemuller: properly escape arguemnts to shell command M +2 -1 mainwindowkde.cpp --- trunk/playground/network/videocatcher/src/mainwindowkde.cpp #1201101:1201102 @@ -53,6 +53,7 @@ #include #include #include +#include #if KDE_IS_VERSION(4,4,0) #include @@ -1171,7 +1172,7 @@ if(preferredServiceName == "customCommand") { QString videoPlaybackCommand = Configure::videoPlaybackCommand(); kDebug() << "videoPlaybackCommand: " << videoPlaybackCommand << " " << QStringList(d->m_episodeModel->videoPath(row)); - QString command = videoPlaybackCommand + " " + d->m_episodeModel->videoPath(row); + QString command = videoPlaybackCommand + " " + KShell::quoteArg(d->m_episodeModel->videoPath(row)); KRun::runCommand(command, this); } else { KRun::KRun *run = new KRun::KRun(d->m_episodeModel->videoPath(row), this);