[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_0_BRANCH: kdelibs/kate/part [POSSIBLY UNSAFE]
From:       Dirk Mueller <mueller () kde ! org>
Date:       2002-12-07 3:10:02
[Download RAW message or body]

CVS commit by mueller: 

shell quoting fix (backport)


  M +3 -2      katedialogs.cpp   1.18.2.1 [POSSIBLY UNSAFE]


--- kdelibs/kate/part/katedialogs.cpp:1.18	Wed Mar 13 23:50:30 2002
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.
 */
 
-// $Id: katedialogs.cpp,v 1.18 2002/03/13 22:50:30 alund Exp $
+// $Id: katedialogs.cpp,v 1.18.2.1 2002/12/07 03:10:02 mueller Exp $
 
 #include "katedialogs.h"
 
@@ -38,6 +38,7 @@
 #include <kpopupmenu.h>
 #include <krun.h>
 #include <kstddirs.h>
+#include <kprocess.h>
 #include <qcheckbox.h>
 #include <qcombobox.h>
 #include <qgroupbox.h>
@@ -1099,7 +1100,7 @@
   QString mt = (lvMimeTypes->currentItem()->parent())->text( 0 ) + "/" + \
(lvMimeTypes->currentItem())->text( 0 );  // thanks to libkonq/konq_operations.cc
   QString keditfiletype = QString::fromLatin1("keditfiletype");
-  KRun::runCommand( keditfiletype + " " + mt,
+  KRun::runCommand( keditfiletype + " " + KShellProcess::quote(mt),
                     keditfiletype, keditfiletype /*unused*/);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic