Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 2304e38a9d869f8e835fee70b5dc8480 > files > 2

ktorrent-2.1.2-2.2mdv2007.1.src.rpm

--- ktorrent-2.1.2/libktorrent/torrent/torrent.cpp.orig	2007-03-08 12:25:36.000000000 -0700
+++ ktorrent-2.1.2/libktorrent/torrent/torrent.cpp	2007-05-01 15:21:41.000000000 -0600
@@ -164,9 +164,9 @@
 					throw Error(i18n("Corrupted torrent!"));
 	
 				QString sd = v->data().toString(encoding);
-				// check for weirdness like .. ,
+				// check for weirdness like .. and /,
 				// we don't want to write outside the user specified directories
-				if (sd != "..") 
+				if (!sd.contains("/") && !sd.contains("..")) 
 				{
 					path += sd;
 					if (j + 1 < ln->getNumChildren())