diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 5363403d..d399b371 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -324,7 +324,7 @@ def clean_message(body) def to_utf8(content) return unless content.present? - content = content&.gsub!("\0", '') # remove null characters + content = content.gsub!("\0", '') # remove null characters begin detection = CharlockHolmes::EncodingDetector.detect(content)