From 38be555332ff736f2319f23fe56187435be9373a Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 30 Jul 2010 13:47:31 +0000 Subject: [PATCH] restored the NETWORK_WIDE flag in RetroShareLink->processFileRequest, because this security was designed in a specific context. Now the FileRequest for links is factored in a single place. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3320 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/RetroShareLink.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/RetroShareLink.cpp b/retroshare-gui/src/gui/RetroShareLink.cpp index a9dc59ef2..dc4cc4d2a 100644 --- a/retroshare-gui/src/gui/RetroShareLink.cpp +++ b/retroshare-gui/src/gui/RetroShareLink.cpp @@ -253,10 +253,7 @@ bool RetroShareLink::process(std::list *psrcIds, int flag) srcIds = *psrcIds; } - // I removed the NETWORK WIDE flag. Indeed, somebody can capture the turtle tunnel requests and ask for downloading the file while - // it's being downloaded (as partial files are always sources). - // - if (rsFiles->FileRequest(name().toStdString(), hash().toStdString(), size(), "", 0 /*RS_FILE_HINTS_NETWORK_WIDE*/, srcIds)) { + if (rsFiles->FileRequest(name().toStdString(), hash().toStdString(), size(), "", RS_FILE_HINTS_NETWORK_WIDE, srcIds)) { if (flag & RSLINK_PROCESS_NOTIFY_SUCCESS) { QMessageBox mb(QObject::tr("File Request Confirmation"), QObject::tr("The file has been added to your download list."),QMessageBox::Information,QMessageBox::Ok,0,0); mb.setButtonText( QMessageBox::Ok, "OK" );