fix(bot): validate url in pk;import

This commit is contained in:
spiral 2022-12-06 10:15:20 +00:00
parent ac5774df3d
commit 2fea773d7e
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
4 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ public static class AvatarUtils
};
if (!PluralKit.Core.MiscUtils.TryMatchUri(url, out var uri))
throw Errors.InvalidUrl(url);
throw Errors.InvalidUrl;
url = TryRewriteCdnUrl(url);