Stefan Hildebrandt and Linus Rath
5306f7c548
fix: cap filename tokens at the full 200-char limit, not 80
...
renderRaw (and the attachment-template renderer) sanitised each {token}
with sanitizePart's default 80-char cap, so a single long token such as
{subject} was truncated to 80 — well before the documented 200-char
filename limit, which was therefore unreachable per token. Introduce a
FILENAME_MAX_LEN (200) constant and use it for the per-token cap so the
overall limit governs. Adds tests.
2026-06-21 19:28:57 +02:00
..
2026-06-19 23:52:42 +02:00
2026-06-20 13:09:26 +02:00
2026-06-19 23:52:42 +02:00
2026-06-12 00:23:00 +02:00
2026-06-19 23:52:42 +02:00
2026-06-03 19:30:51 +02:00
2026-06-19 23:52:42 +02:00
2026-04-26 20:10:04 +02:00
2026-03-31 00:11:04 +02:00
2026-03-27 18:46:20 +01:00
2026-06-19 23:53:20 +02:00
2026-06-19 23:53:20 +02:00
2026-02-17 01:09:57 +01:00
2026-05-28 20:06:47 +02:00
2026-04-25 18:40:54 +02:00
2026-04-16 19:07:42 +02:00
2026-05-28 20:06:47 +02:00
2026-06-21 19:28:57 +02:00
2026-06-19 12:30:43 +02:00
2026-06-19 23:53:20 +02:00
2026-05-18 00:24:08 +02:00
2026-04-30 01:25:04 +02:00
2026-06-19 23:52:42 +02:00
2026-03-16 22:00:11 +01:00
2026-03-19 18:50:59 +01:00
2026-05-31 16:28:22 +02:00
2026-06-15 23:15:04 +02:00
2026-05-21 23:35:58 +02:00
2026-03-30 21:12:05 +02:00
2026-04-16 19:07:42 +02:00
2026-03-21 20:45:20 +01:00
2026-06-12 00:02:45 +02:00
2026-02-16 18:51:30 +01:00
2026-04-21 17:29:23 +02:00
2026-05-28 18:46:49 +02:00
2026-04-16 19:07:42 +02:00
2026-05-22 11:51:25 +02:00
2026-06-19 12:29:43 +02:00
2026-06-19 23:52:42 +02:00
2026-05-22 17:22:14 +02:00
2026-06-02 00:15:50 +02:00
2026-02-26 00:08:57 +01:00
2026-03-25 00:44:03 +01:00
2026-06-19 23:53:20 +02:00
2026-06-19 23:53:20 +02:00
2026-03-25 00:44:03 +01:00
2026-05-18 12:17:54 +02:00
2026-06-19 23:53:20 +02:00
2026-04-28 15:39:13 +02:00
2026-05-12 20:49:05 +02:00
2026-06-19 12:31:07 +02:00
2026-05-11 12:13:47 +02:00
2026-03-14 16:50:43 +01:00
2026-06-19 23:52:42 +02:00
2026-05-31 15:52:27 +02:00
2026-04-16 17:22:52 +02:00
2026-03-15 16:07:45 +01:00
2026-05-30 15:12:30 +02:00
2026-05-01 01:48:39 +02:00
2026-06-19 23:52:42 +02:00
2026-02-17 01:35:26 +01:00
2026-04-28 15:39:13 +02:00
2026-04-28 15:39:13 +02:00
2026-03-23 15:45:37 +01:00
2026-06-19 23:52:42 +02:00
2026-03-18 18:00:51 +01:00
2026-06-19 23:52:42 +02:00
2026-04-27 22:23:39 +02:00
2026-01-08 22:15:32 +01:00
2026-05-15 20:10:18 +02:00
2026-04-30 15:34:14 +02:00
2026-05-16 18:11:52 +02:00
2026-06-19 23:52:42 +02:00