From f32c507a90fdf3a3d02a17d56a57dd6179c1be69 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Mon, 12 Jan 2026 22:34:37 -0500 Subject: [PATCH] fix(nas): use wordsEncoding for UTF16 strings profanity words made a mistake using the unitcd instead of wordsEncoding due to a bad copy-paste, my bad --- nas/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nas/auth.go b/nas/auth.go index b8cb1a0..249ae9d 100644 --- a/nas/auth.go +++ b/nas/auth.go @@ -411,7 +411,7 @@ func handleProfanity(form url.Values, unitcd string) map[string]string { words = string(wordsBytes) } else { var utf16String []uint16 - if unitcd == "0" { + if wordsEncoding == "UTF-16LE" { for i := 0; i < len(wordsBytes)/2; i++ { utf16String = append(utf16String, binary.LittleEndian.Uint16(wordsBytes[i*2:i*2+2])) }