From 0a3f437a0ff737b218d65b80ae1b0d83771b16bb Mon Sep 17 00:00:00 2001 From: Alexander van Delft Date: Mon, 16 Dec 2024 13:13:59 +0100 Subject: [PATCH] Security risk --- COMET.Web.Common/Components/CardView/CardField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COMET.Web.Common/Components/CardView/CardField.cs b/COMET.Web.Common/Components/CardView/CardField.cs index f2cba9f6..48de25d7 100644 --- a/COMET.Web.Common/Components/CardView/CardField.cs +++ b/COMET.Web.Common/Components/CardView/CardField.cs @@ -110,7 +110,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) if (this.AllowSearch && !string.IsNullOrWhiteSpace(value) && !string.IsNullOrWhiteSpace(this.SearchTerm)) { var separatorPattern = $"({this.SearchTerm})"; - var result = Regex.Split(value, separatorPattern, RegexOptions.IgnoreCase); + var result = Regex.Split(value, separatorPattern, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(30)); var elementCounter = 0; foreach (var element in result)