diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-03 12:07:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-03 12:07:35 +0300 |
commit | a9c5941625be2416fbf3b514019886e8f9658416 (patch) | |
tree | 6c6bff089f4bf8ed2c1d5fe184a40975383f7022 /lib/gitlab/email | |
parent | 18876223fd5dc347c26a65838b4e93fbd2702b9f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r-- | lib/gitlab/email/common.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/email/html_parser.rb | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/email/common.rb b/lib/gitlab/email/common.rb index afee8d9cd3d..01316995c4d 100644 --- a/lib/gitlab/email/common.rb +++ b/lib/gitlab/email/common.rb @@ -54,6 +54,10 @@ module Gitlab # It's looking for each <...> references.scan(/(?!<)[^<>]+(?=>)/) end + + def encrypted_secrets + Settings.encrypted(config.encrypted_secret_file) + end end end end diff --git a/lib/gitlab/email/html_parser.rb b/lib/gitlab/email/html_parser.rb index 27ba5d2a314..65117ac0141 100644 --- a/lib/gitlab/email/html_parser.rb +++ b/lib/gitlab/email/html_parser.rb @@ -18,9 +18,6 @@ module Gitlab end def filter_replies! - document.xpath('//blockquote').each(&:remove) - document.xpath('//table').each(&:remove) - # bogus links with no href are sometimes added by outlook, # and can result in Html2Text adding extra square brackets # to the text, so we unwrap them here. |