From kde-commits Thu Dec 05 18:35:45 2002 From: Waldo Bastian Date: Thu, 05 Dec 2002 18:35:45 +0000 To: kde-commits Subject: kdeextragear-1/kchat [INSECURITY] X-MARC-Message: https://marc.info/?l=kde-commits&m=103911340806378 CVS commit by waba: Add proper quoting M +4 -2 socketadministration.cpp 1.7 [INSECURITY] --- kdeextragear-1/kchat/socketadministration.cpp:1.6 Tue Jul 23 12:25:24 2002 @@ -19,9 +19,11 @@ #include #include #include +#include #include #include #include +#include #include @@ -128,9 +130,9 @@ { QString address = connections->selectedItem()->text(2); QString query = "ping -w 10 -c 1 "; - query += address; + query += KProcess::quote(address); FILE *pipe; - pipe = popen (query.ascii(), "r"); + pipe = popen (QFile::encodeName(query), "r"); char ch; QString answer; bool firstch = false;