Skip to content

Commit

Permalink
fix: Pass timeout to regex match
Browse files Browse the repository at this point in the history
  • Loading branch information
nikcio committed Jun 5, 2024
1 parent f8ce9ce commit 1041069
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static int GetStatusCode(Redirect redirect)

if (redirect.Source is RegexSourceStrategy regexsource)
{
urlString = Regex.Replace((requestedUrl.Path + requestedUrl.Query).TrimStart('/'), regexsource.Value, urlString);
urlString = Regex.Replace((requestedUrl.Path + requestedUrl.Query).TrimStart('/'), regexsource.Value, urlString, RegexOptions.None, TimeSpan.FromMilliseconds(100));
}

var url = Url.Parse(urlString);
Expand Down

0 comments on commit 1041069

Please sign in to comment.