Skip to content

Commit

Permalink
Fix a bug processing .. in paths (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpar authored Sep 18, 2024
1 parent 0e1ff2c commit fcf9a82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Basic.CompilerLog.Util/ExportUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ internal ContentBuilder(string destinationDirectory, string originalProjectFileP

internal string GetNewSourcePath(string originalFilePath)
{
// Normalize out all of the ..\ and .\ in the path
originalFilePath = Path.GetFullPath(originalFilePath);

string filePath;
if (originalFilePath.StartsWith(OriginalProjectDirectory, PathUtil.Comparison))
{
Expand Down

0 comments on commit fcf9a82

Please sign in to comment.