Skip to content

Commit cfabb0d

Browse files
committed
Update ImageResolver.cs
1 parent 5781aa9 commit cfabb0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OpenXmlHtml/ImageResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ internal static (int? Width, int? Height) ParseImageDimensions(IElement element)
200200
return null;
201201
}
202202

203-
url = (location.IsAbsoluteUri ? location : new Uri(new Uri(url), location)).ToString();
203+
url = (location.IsAbsoluteUri ? location : new(new(url), location)).ToString();
204204
if (!policy.IsAllowed(url))
205205
{
206206
return null;

0 commit comments

Comments
 (0)