fix(notifications): RFC 2047-encode ntfy header umlauts (#1621)

This commit is contained in:
Konstantinos Thermos
2026-07-20 13:32:55 +02:00
committed by GitHub
parent 0b4737448d
commit 229ec6d18e
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ export function resolveAdminNtfyUrl(adminCfg: NtfyConfig): string | null {
function encodeHeaderValue(value: string): string {
for (let i = 0; i < value.length; i++) {
if (value.charCodeAt(i) > 0xff) {
if (value.charCodeAt(i) > 0x7f) {
return `=?UTF-8?B?${Buffer.from(value, 'utf8').toString('base64')}?=`;
}
}