mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 08:37:07 +00:00
Merge commit from fork
Fix GHSA v2jv-54xj-h76w
This commit is contained in:
commit
352e4f3aba
2 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ public class SyncPlayController : BaseJellyfinApiController
|
|||
[FromBody, Required] NewGroupRequestDto requestData)
|
||||
{
|
||||
var currentSession = await RequestHelpers.GetSession(_sessionManager, _userManager, HttpContext).ConfigureAwait(false);
|
||||
var syncPlayRequest = new NewGroupRequest(requestData.GroupName);
|
||||
var syncPlayRequest = new NewGroupRequest(requestData.GroupName.Trim());
|
||||
return Ok(_syncPlayManager.NewGroup(currentSession, syncPlayRequest, CancellationToken.None));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Jellyfin.Api.Models.SyncPlayDtos;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -17,5 +19,6 @@ public class NewGroupRequestDto
|
|||
/// Gets or sets the group name.
|
||||
/// </summary>
|
||||
/// <value>The name of the new group.</value>
|
||||
[StringLength(200, ErrorMessage = "Group name must not exceed 200 characters.")]
|
||||
public string GroupName { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue