2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: ignore_by_title should match case-insensitive

This commit is contained in:
Gerhard Schlager 2017-11-12 01:43:18 +01:00
parent 4af7881cb7
commit 4dc4bc70c8
4 changed files with 6 additions and 4 deletions

View file

@ -66,7 +66,7 @@ module Email
def is_blacklisted?
return false if SiteSetting.ignore_by_title.blank?
Regexp.new(SiteSetting.ignore_by_title) =~ @mail.subject
Regexp.new(SiteSetting.ignore_by_title, Regexp::IGNORECASE) =~ @mail.subject
end
def create_incoming_email