Make account domains case-insensitive, downcase before checking against local
This commit is contained in:
parent
5f737c7228
commit
aec51e40ee
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class TagManager
|
|||
end
|
||||
|
||||
def local_domain?(domain)
|
||||
domain.nil? || domain.gsub(/[\/]/, '') == Rails.configuration.x.local_domain
|
||||
domain.nil? || domain.gsub(/[\/]/, '').downcase == Rails.configuration.x.local_domain.downcase
|
||||
end
|
||||
|
||||
def uri_for(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue