mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: cleanup aliases in email From and Reply-to fields to prevent Bad sender address syntax errors
This commit is contained in:
@@ -21,4 +21,9 @@ module Email
|
||||
email.downcase
|
||||
end
|
||||
|
||||
def self.cleanup_alias(name)
|
||||
# TODO: I'm sure there are more, but I can't find a list
|
||||
name ? name.gsub(/[:<>]/, '') : name
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user