diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:06:30 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:06:30 +1100 |
commit | 7587537cf37e965fb190fc2ac31fa9f40c7cf117 (patch) | |
tree | 3fae5721e20629b39c67f326ba3ab61c6d571a8e /app/models/mail_server_log.rb | |
parent | 14d84bd536883b2f10ed5c6ff4aaec4edfd17b0f (diff) |
Fix small bug where email domain wasn't being quoted in the regular expression
Diffstat (limited to 'app/models/mail_server_log.rb')
-rw-r--r-- | app/models/mail_server_log.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_server_log.rb b/app/models/mail_server_log.rb index 8a978ae07..b6d80cc2f 100644 --- a/app/models/mail_server_log.rb +++ b/app/models/mail_server_log.rb @@ -123,7 +123,7 @@ class MailServerLog < ActiveRecord::Base # We also check the email prefix so that we could, for instance, separately handle a staging and production # instance running on the same server with different email prefixes. def MailServerLog.email_addresses_on_line(line) - line.scan(/#{Regexp::quote(Configuration::incoming_email_prefix)}request-[^\s]+@#{Configuration::incoming_email_domain}/).sort.uniq + line.scan(/#{Regexp::quote(Configuration::incoming_email_prefix)}request-[^\s]+@#{Regexp::quote(Configuration::incoming_email_domain)}/).sort.uniq end def MailServerLog.request_sent?(ir) |