Fixes #5897 - Emails cannot be fetched from mailbox (only an interim solution, which will be improved).
Co-authored-by: Florian Liebe <fl@zammad.com> Co-authored-by: Dominik Klein <dk@zammad.com>
This commit is contained in:
committed by
Dominik Klein
parent
30eb9512ba
commit
a85742f796
@@ -1,13 +0,0 @@
|
||||
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
||||
|
||||
# Nokogori has a default limit of 400 for the maximum tree depth.
|
||||
# Some emails have a very nested HTML structure that exceeds this limit.
|
||||
# But emails with much higher nested HTML structure seem to get parsed in no time.
|
||||
# On top of that, we have a timeout to prevent forever email parsing.
|
||||
#
|
||||
# On top of that, Loofah makes impossible to pass the higher limit in conventional ways.
|
||||
# Thus overriding constant is the only way.
|
||||
#
|
||||
# https://github.com/zammad/zammad/issues/5826
|
||||
Nokogiri::Gumbo.send(:remove_const, :DEFAULT_MAX_TREE_DEPTH)
|
||||
Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH = 4_000
|
||||
Reference in New Issue
Block a user