diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index ba852dcd..4ed2e836 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -988,7 +988,7 @@ namespace torrents LogPrint (eLogDebug, "TorrentsRPC: Tunnel not found or web is not supported ", subUrlPath->string ()); } } - if (!isPathValid || fileSubUrl.string ().find ("..") != std::string::npos) + if (!isPathValid || fileSubUrl.string ().find ("..") != std::string::npos || fileSubUrl == ".") { SendResponse (boost::beast::http::status::forbidden); return;