mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 19:26:07 +00:00
fix: duplicate string before modifying it to prevent frozen string errors
This commit is contained in:
@@ -48,7 +48,7 @@ module Postal
|
|||||||
message: @message.webhook_hash,
|
message: @message.webhook_hash,
|
||||||
status: status,
|
status: status,
|
||||||
details: details,
|
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,
|
sent_with_ssl: sent_with_ssl,
|
||||||
timestamp: @attributes["timestamp"],
|
timestamp: @attributes["timestamp"],
|
||||||
time: time
|
time: time
|
||||||
|
|||||||
Reference in New Issue
Block a user