[GH-ISSUE #244] Payload with new lines is not printable #410

Open
opened 2026-03-07 22:15:14 +03:00 by kerem · 0 comments
Owner

Originally created by @andy-opal on GitHub (May 17, 2022).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/244

unicode.IsPrint returns false for \n so the function here returns false for any payload containing newlines:

github.com/hibiken/asynqmon@1597dac66e/conversion_helpers.go (L62)

I think it would still be good to render these payloads in asynqmon. Maybe you could whitelist carriage returns and newlines?

Originally created by @andy-opal on GitHub (May 17, 2022). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/244 `unicode.IsPrint` returns `false` for `\n` so the function here returns false for any payload containing newlines: https://github.com/hibiken/asynqmon/blob/1597dac66ef80b0a22183df675f8038bd6bb5baa/conversion_helpers.go#L62 I think it would still be good to render these payloads in asynqmon. Maybe you could whitelist carriage returns and newlines?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#410
No description provided.