Project

General

Profile

Actions

Defect #19537

closed

Broken HTML sanitizer refence breaks email receiving

Added by Phil Stewart over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

HTML emails fail silently when receiving emails via IMAP due to broken HTML sanitizer reference in MailHandler.full_sanitizer on line 449 of app/models/mail_handler.rb:

def self.full_sanitizer
  @full_sanitizer ||= HTML::FullSanitizer.new
end

Changing this line to @full_sanitizer ||= Rails::Html::FullSanitizer.new works, although it didn't do a particularly good job on the stuck email I'd sent from Outlook.

Redmine: 3.0.1
Rails: 4.2.0
Ruby: 2.2.0


Files

MailHandler_Strip_sample.png (178 KB) MailHandler_Strip_sample.png Rupesh J, 2015-04-29 10:50
Actions

Also available in: Atom PDF