Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 7a108da

Browse files
authored
[Core] fix failed to filter invalid images in special cases (#830)
1 parent 48c8b3c commit 7a108da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lagrange.Core/Message/Filter/Rule/OldAndInvalidImageFilterRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public IEnumerable<int> Apply(MessageChain chain)
1414
var result = new List<int>();
1515
var groups = images.GroupBy((image) =>
1616
{
17-
if (!Uri.IsWellFormedUriString(image.ImageUrl, UriKind.RelativeOrAbsolute)) return ImageType.Invalid;
17+
if (!Uri.IsWellFormedUriString(image.ImageUrl, UriKind.Absolute)) return ImageType.Invalid;
1818

1919
Uri uri = new Uri(image.ImageUrl);
2020

0 commit comments

Comments
 (0)