Skip to content

Commit

Permalink
Fix incorrect prefix check
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed May 31, 2024
1 parent 1a26a5d commit c6a7082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/OsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public void OpenUrlExternally(string url, bool forceBypassExternalUrlWarning = f
}
else
{
isTrustedDomain = url.StartsWith(API.APIEndpointUrl, StringComparison.Ordinal);
isTrustedDomain = url.StartsWith(API.WebsiteRootUrl, StringComparison.Ordinal);
}

if (!url.CheckIsValidUrl())
Expand Down

0 comments on commit c6a7082

Please sign in to comment.