Skip to content

Commit

Permalink
FIX: sanitize bulk invite error log
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed May 9, 2017
1 parent b14ea0e commit 94683b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/regular/bulk_invite.rb
Expand Up @@ -85,7 +85,7 @@ def send_invite(csv_info, csv_line_number)
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
Expand Down

0 comments on commit 94683b3

Please sign in to comment.