Skip to content

Commit

Permalink
[OneBot] Fix non-pure English path encoding problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored Jan 16, 2024
2 parents 592761d + 5fa95c4 commit 0c2d078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Core/Message/Entity/ImageSegment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void Build(MessageBuilder builder, ISegment segment)

if (imageSegment.Url.StartsWith("file"))
{
string path = new Uri(imageSegment.Url).AbsolutePath;
string path = new Uri(imageSegment.Url).LocalPath;
builder.Image(File.ReadAllBytes(path));
}

Expand Down

0 comments on commit 0c2d078

Please sign in to comment.