From b7e8bcda073bd84a7c35f5ac9a7afa508556366f Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 29 Aug 2014 12:21:33 +1000 Subject: [PATCH] FIX: strip leading/trailing spaces from developer emails --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 143e5992eb..8ed39bf6de 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -47,7 +47,7 @@ Discourse::Application.configure do require 'rbtrace' if emails = GlobalSetting.developer_emails - config.developer_emails = emails.split(",") + config.developer_emails = emails.split(",").map(&:strip!) end end diff --git a/config/environments/production.rb b/config/environments/production.rb index e92ffa87a8..3a8b992a8e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -61,7 +61,7 @@ Discourse::Application.configure do # developers have god like rights and may impersonate anyone in the system # normal admins may only impersonate other moderators (not admins) if emails = GlobalSetting.developer_emails - config.developer_emails = emails.split(",") + config.developer_emails = emails.split(",").map(&:strip!) end end