mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add license headers and sanitise open profile argument.
This commit is contained in:
@ -93,7 +93,8 @@ namespace osu.Game.Graphics.Containers
|
||||
Process.Start(url);
|
||||
break;
|
||||
case LinkAction.OpenUserProfile:
|
||||
userProfile?.ShowUser(Convert.ToInt64(linkArgument));
|
||||
if (long.TryParse(linkArgument, out long userId))
|
||||
userProfile?.ShowUser(userId);
|
||||
break;
|
||||
default:
|
||||
throw new NotImplementedException($"This {nameof(LinkAction)} ({linkType.ToString()}) is missing an associated action.");
|
||||
|
Reference in New Issue
Block a user