Change comma-delim site settings to pipe-delim

This commit is contained in:
riking
2014-03-29 16:50:44 -07:00
parent b328fd0031
commit 9c4dd1cb35
9 changed files with 41 additions and 10 deletions

View File

@ -163,9 +163,9 @@ class Post < ActiveRecord::Base
hosts = SiteSetting
.white_listed_spam_host_domains
.split(",")
.split('|')
.map{|h| h.strip}
.reject{|h| !h.include?(".")}
.reject{|h| !h.include?('.')}
hosts << GlobalSetting.hostname