From 5add0ca372ac61ed4b21d444e6240c856b6adb13 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Thu, 5 Apr 2012 19:30:41 +0200 Subject: [PATCH] Fixed: #1455 Bad changes in revision 48a37af6954c --- .../rfr_ryzom_file_retriever.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/ryzom/server/src/general_utilities_service/rfr_ryzom_file_retriever.cpp b/code/ryzom/server/src/general_utilities_service/rfr_ryzom_file_retriever.cpp index 6e0f4940f..014f679e4 100644 --- a/code/ryzom/server/src/general_utilities_service/rfr_ryzom_file_retriever.cpp +++ b/code/ryzom/server/src/general_utilities_service/rfr_ryzom_file_retriever.cpp @@ -472,9 +472,11 @@ bool CRyzomFileRetrieverImplementation::downloadBackupFiles(const CSString& shar continue; // generate a local filename for the downloaded file - CSString localFileName= NLMISC::CPath::standardizePath(localDirectory)+(fileName+"_"+fdc[i].FileName); - localFileName = localFileName.replace("/","_"); - localFileName = localFileName.replace(".","_"); + CSString fdcFileNameUnderscore = fdc[i].FileName; + fdcFileNameUnderscore = fdcFileNameUnderscore.replace("/","_"); + CSString localFileNameWithoutPath = fileName + "_" + fdcFileNameUnderscore; + localFileNameWithoutPath = localFileNameWithoutPath.replace(".","_"); + CSString localFileName = NLMISC::CPath::standardizePath(localDirectory) + localFileNameWithoutPath; nlinfo("Requesting file download: REMOTE:%s => LOCAL:%s",fdc[i].FileName.c_str(),localFileName.c_str()); // put in a request for the file to be retrieved