CA-239308 - Collection of SSR Fails Due to Special Characters Present in File Names

Signed-off-by: Letsibogo Ramadi <letsibogo.ramadi@citrix.com>
This commit is contained in:
Letsibogo Ramadi 2017-01-12 16:20:54 +00:00
parent b170fdecc1
commit 4fb81f6f13

View File

@ -127,7 +127,7 @@ namespace XenAdmin.Actions
tarIterator.ExtractCurrentFile(ms);
string saneName = SanitizeTarName(tarIterator.CurrentFileName(), usedNames);
tarWriter.Add(ms, saneName);
ModTimes[Path.Combine(outputDir, tarIterator.CurrentFileName())] = tarIterator.CurrentFileModificationTime();
ModTimes[Path.Combine(outputDir, saneName)] = tarIterator.CurrentFileModificationTime();
}
}