From kde-commits Fri Dec 06 15:47:01 2002 From: Waldo Bastian Date: Fri, 06 Dec 2002 15:47:01 +0000 To: kde-commits Subject: KDE_3_0_BRANCH: kdepim/korganizer [POSSIBLY UNSAFE] X-MARC-Message: https://marc.info/?l=kde-commits&m=103918969214751 CVS commit by waba: Add proper quoting M +6 -6 komailclient.cpp 1.29.2.1 [POSSIBLY UNSAFE] --- kdepim/korganizer/komailclient.cpp:1.29 Tue Mar 12 23:03:18 2002 @@ -22,7 +22,7 @@ without including the source code for Qt in the source distribution. */ -// $Id: komailclient.cpp,v 1.29 2002/03/12 22:03:18 mueller Exp $ +// $Id: komailclient.cpp,v 1.29.2.1 2002/12/06 15:47:00 waba Exp $ #include #include @@ -34,6 +34,7 @@ #include #include #include +#include #include @@ -116,17 +117,16 @@ command = KStandardDirs::findExe(QString::fromLatin1("mail")); if (command.isNull()) return false; // give up - command.append(QString::fromLatin1(" -s \x22")); - command.append(subject); - command.append(QString::fromLatin1("\x22")); + command.append(QString::fromLatin1(" -s ")); + command.append(KShellProcess::quote(subject)); if (bcc) { command.append(QString::fromLatin1(" -b ")); - command.append(from); + command.append(KShellProcess::quote(from)); } command.append(" "); - command.append(to); + command.append(KShellProcess::quote(to)); needHeaders = false; }