Skip to content

Commit

Permalink
fix: duplicate string before modifying it to prevent frozen string er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
catphish committed May 14, 2023
1 parent 5222263 commit f0a8aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postal/message_db/delivery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def webhook_hash
message: @message.webhook_hash,
status: status,
details: details,
output: output.to_s.force_encoding("UTF-8").scrub.truncate(512),
output: output.to_s.dup.force_encoding("UTF-8").scrub.truncate(512),
sent_with_ssl: sent_with_ssl,
timestamp: @attributes["timestamp"],
time: time
Expand Down

0 comments on commit f0a8aca

Please sign in to comment.