mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Fix #3264: Do not allow zero-length segments in CleanUpName: Escape path separator characters at the start of a segment.
This commit is contained in:
@@ -692,7 +692,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
|
||||
if (separateAtDots)
|
||||
currentSegmentLength = 0;
|
||||
}
|
||||
else if (treatAsFileName && (c == '/' || c == '\\') && currentSegmentLength > 0)
|
||||
else if (treatAsFileName && (c == '/' || c == '\\') && currentSegmentLength > 1)
|
||||
{
|
||||
// if we treat this as a file name, we've started a new segment
|
||||
b.Append(c);
|
||||
|
||||
Reference in New Issue
Block a user