Add license headers and sanitise open profile argument.

This commit is contained in:
naoey
2018-02-26 09:38:37 +05:30
parent 1ad45b0941
commit 5724618b2a
4 changed files with 14 additions and 4 deletions

View File

@ -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.");