Harden remaining path-construction sinks against traversal
This commit is contained in:
@@ -27,6 +27,8 @@ namespace Jellyfin.Server.Implementations.Tests.Users
|
||||
[InlineData(" thishasaspaceatthestart")]
|
||||
[InlineData(" thishasaspaceatbothends ")]
|
||||
[InlineData(" this has a space at both ends and inbetween ")]
|
||||
[InlineData(".")]
|
||||
[InlineData("..")]
|
||||
public void ThrowIfInvalidUsername_WhenInvalidUsername_ThrowsArgumentException(string username)
|
||||
{
|
||||
Assert.Throws<ArgumentException>(() => UserManager.ThrowIfInvalidUsername(username));
|
||||
|
||||
Reference in New Issue
Block a user