Skip to content

Commit

Permalink
Security risk
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander van Delft committed Dec 16, 2024
1 parent bdc0929 commit 0a3f437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion COMET.Web.Common/Components/CardView/CardField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a3f437

Please sign in to comment.