Skip to content

Commit

Permalink
Fixed crdential roaming file path generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrafnetter committed Dec 5, 2022
1 parent b2ed71e commit 333b6c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/DSInternals.Common/Data/DPAPI/RoamedCredential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ public override string FilePath
break;
}

// The identifier of the blob is also its file name
sb.Append(this.Id);
// The identifier of the blob is also its file name. Any invalid characters must be remved first.
string fileName = string.Concat(this.Id.Split(Path.GetInvalidFileNameChars()));
sb.Append(fileName);

return sb.ToString();
}
Expand Down

0 comments on commit 333b6c0

Please sign in to comment.