mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
Abort triggers for email body processing
This commit is contained in:
@ -72,6 +72,13 @@ module Email
|
||||
end
|
||||
|
||||
@body = @message.body.to_s.strip
|
||||
|
||||
# Certain trigger phrases that means we didn't parse correctly
|
||||
@body = nil if @body =~ /Content\-Type\:/ ||
|
||||
@body =~ /multipart\/alternative/ ||
|
||||
@body =~ /text\/plain/
|
||||
|
||||
@body
|
||||
end
|
||||
|
||||
def scrub_html(html)
|
||||
|
Reference in New Issue
Block a user