Skip to content

Commit

Permalink
fix Bug 69477
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Dec 10, 2024
1 parent 740539e commit 347e688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ASC.Web.Core/Utility/UrlShortener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class OnlyoShortener(IDbContextFactory<UrlShortenerDbContext> contextFact
{
public async Task<string> GetShortenLinkAsync(string shareLink)
{
if (!shareLink.StartsWith(commonLinkUtility.ServerRootPath))
if (!shareLink.StartsWith(commonLinkUtility.ServerRootPath) || new Uri(shareLink).Host != new Uri(commonLinkUtility.ServerRootPath).Host)
{
throw new ArgumentException("the link should be to this portal");
}
Expand Down

0 comments on commit 347e688

Please sign in to comment.