Skip to content

Commit

Permalink
Merge pull request #5 from SergeyFilippov/main
Browse files Browse the repository at this point in the history
loic-sharma#727: Normalize readme entry path prior to extraction
  • Loading branch information
TheBinaryLoop authored Jun 27, 2023
2 parents c50d013 + bec27b2 commit 6d2976b
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 6d2976b

Please sign in to comment.