From e9f83144b23bd23c5d3e80fc3e0d0f2fe228bce1 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Thu, 5 Mar 2026 09:46:15 +0000 Subject: [PATCH] Raise linkify regex timeout Integrate Tom's timeout patch that closes #6812 and closes #6799 --- lib/rich_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rich_text.rb b/lib/rich_text.rb index 28c88c78e..bee6da923 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -112,7 +112,7 @@ module RichText expanded_path = "#{rule.host || "#{Settings.server_protocol}://#{Settings.server_url}"}/#{rule.path_template}" rule.patterns .grep(String) - .map { |pattern| [Regexp.new("(?<=^|#{URL_UNSAFE_CHARS})#{pattern}", Regexp::IGNORECASE, :timeout => 0.05), expanded_path] } + .map { |pattern| [Regexp.new("(?<=^|#{URL_UNSAFE_CHARS})#{pattern}", Regexp::IGNORECASE, :timeout => 1), expanded_path] } end end -- 2.47.3