FIX: sanitize bulk invite error log

This commit is contained in:
Arpit Jalan 2017-05-09 17:11:40 +05:30
parent b14ea0e751
commit 94683b33b8

View File

@ -85,7 +85,7 @@ module Jobs
begin
Invite.invite_by_email(email, @current_user, topic, group_ids)
rescue => e
log "Error inviting '#{email}' -- #{e}"
log "Error inviting '#{email}' -- #{Rails::Html::FullSanitizer.new.sanitize(e.message)}"
@sent -= 1
@failed += 1
end