--- 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())