[atlantik-cvs] CVS: kdegames/atlantik/kio_atlantik kio_atlantik.cpp,1.2,1.2.6.1

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/kio_atlantik
In directory office:/tmp/cvs-serv4566/kio_atlantik

Modified Files:
      Tag: KDE_3_1_BRANCH
	kio_atlantik.cpp 
Log Message:
properly quote arguments given to KProcess in kio_atlantik


Index: kio_atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/kio_atlantik/kio_atlantik.cpp,v
retrieving revision 1.2
retrieving revision 1.2.6.1
diff -u -d -r1.2 -r1.2.6.1
--- kio_atlantik.cpp	8 Jul 2002 06:22:39 -0000	1.2
+++ kio_atlantik.cpp	23 Dec 2002 08:49:50 -0000	1.2.6.1
@@ -23,9 +23,9 @@
 {
 	KProcess *proc = new KProcess;
 	*proc << "atlantik";
-	QString host = url.queryItem("host");
-	QString port = url.queryItem("port");
-	QString game = url.queryItem("game");
+	QString host = KProcess::quote(url.queryItem("host"));
+	QString port = KProcess::quote(url.queryItem("port"));
+	QString game = KProcess::quote(url.queryItem("game"));
 
 	if (!host.isNull() && !port.isNull())
 	{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.