Skip to content

Commit

Permalink
#727: Normalize readme entry path prior to extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyFilippov committed Mar 23, 2022
1 parent db839bf commit 1e3b552
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async static Task<Stream> GetReadmeAsync(
throw new InvalidOperationException("Package does not have a readme!");
}

return await package.GetStreamAsync(readmePath, cancellationToken);
return await package.GetStreamAsync(PathUtility.StripLeadingDirectorySeparators(readmePath), cancellationToken);
}

public async static Task<Stream> GetIconAsync(
Expand Down

0 comments on commit 1e3b552

Please sign in to comment.