From 99d68cfd91145efccc19f4febbe3b92e59ce0505 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 7 Apr 2025 15:54:06 +0300 Subject: [PATCH] Fixed: Disallow tags creation with empty label --- src/Radarr.Api.V3/Tags/TagController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Radarr.Api.V3/Tags/TagController.cs b/src/Radarr.Api.V3/Tags/TagController.cs index 1776b51c06..99ad0f65ed 100644 --- a/src/Radarr.Api.V3/Tags/TagController.cs +++ b/src/Radarr.Api.V3/Tags/TagController.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using FluentValidation; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.AutoTagging; using NzbDrone.Core.Datastore.Events; @@ -23,6 +24,8 @@ public TagController(IBroadcastSignalRMessage signalRBroadcaster, : base(signalRBroadcaster) { _tagService = tagService; + + SharedValidator.RuleFor(c => c.Label).NotEmpty(); } protected override TagResource GetResourceById(int id)