mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Add license headers and sanitise open profile argument.
This commit is contained in:
parent
1ad45b0941
commit
5724618b2a
@ -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.");
|
||||
|
@ -1,4 +1,7 @@
|
||||
using Newtonsoft.Json;
|
||||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using Humanizer;
|
||||
using System;
|
||||
|
@ -1,4 +1,7 @@
|
||||
using osu.Framework.Allocation;
|
||||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Graphics;
|
||||
|
@ -1,4 +1,7 @@
|
||||
using osu.Framework.Configuration;
|
||||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Users;
|
||||
|
Loading…
Reference in New Issue
Block a user