diff --git a/app/models/environment.rb b/app/models/environment.rb index aa7973f..ae0c048 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -193,7 +193,7 @@ class Environment < ActiveRecord::Base validates_format_of :contact_email, :with => Noosfero::Constants::EMAIL_FORMAT, :if => (lambda { |record| ! record.contact_email.blank? }) - xss_terminate :only => [ :description ], :with => 'white_list' + xss_terminate :only => [ :description, :message_for_disabled_enterprise ], :with => 'white_list' # ################################################# # Business logic in general diff --git a/app/views/admin_panel/index.rhtml b/app/views/admin_panel/index.rhtml index f5ccc30..974ad9b 100644 --- a/app/views/admin_panel/index.rhtml +++ b/app/views/admin_panel/index.rhtml @@ -4,6 +4,7 @@