mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32: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);
|
Process.Start(url);
|
||||||
break;
|
break;
|
||||||
case LinkAction.OpenUserProfile:
|
case LinkAction.OpenUserProfile:
|
||||||
userProfile?.ShowUser(Convert.ToInt64(linkArgument));
|
if (long.TryParse(linkArgument, out long userId))
|
||||||
|
userProfile?.ShowUser(userId);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new NotImplementedException($"This {nameof(LinkAction)} ({linkType.ToString()}) is missing an associated action.");
|
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 osu.Game.Rulesets.Scoring;
|
||||||
using Humanizer;
|
using Humanizer;
|
||||||
using System;
|
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;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics;
|
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.Framework.Graphics;
|
||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
Loading…
Reference in New Issue
Block a user