mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 23:14:54 -06:00
4.52 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
d14d4dcdef
commit
33ccab7e72
@@ -70,12 +70,9 @@ static bool IsSupportedName(const UString &name)
|
||||
|
||||
static UString GetCorrectFileName(const UString &path)
|
||||
{
|
||||
UString result = path;
|
||||
UString test = path;
|
||||
// test.Trim();
|
||||
if (test == L"..")
|
||||
result.Replace(L"..", L"");
|
||||
return ReplaceIncorrectChars(result);
|
||||
if (path == L".." || path == L".")
|
||||
return UString();
|
||||
return ReplaceIncorrectChars(path);
|
||||
}
|
||||
|
||||
void MakeCorrectPath(UStringVector &pathParts)
|
||||
|
||||
Reference in New Issue
Block a user