Skip to content

Commit 367b2ab

Browse files
committed
Fix: UrlPathRegexToIgnore could hang on catastrophic backtracking
1 parent 2ea6655 commit 367b2ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlazorWasmPreRendering.Build/StaticlizeCrawler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public StaticlizeCrawler(
6666
{
6767
try
6868
{
69-
this.UrlPathRegexToIgnore = new Regex(urlPathRegexToIgnore, RegexOptions.Compiled | RegexOptions.IgnoreCase);
69+
this.UrlPathRegexToIgnore = new Regex(urlPathRegexToIgnore, RegexOptions.Compiled | RegexOptions.IgnoreCase, TimeSpan.FromSeconds(5));
7070
}
7171
catch (ArgumentException ex)
7272
{

0 commit comments

Comments
 (0)