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);