From f4eaf71983b39d2a108b5259f124adfb99795fed Mon Sep 17 00:00:00 2001 From: drkhsh Date: Sun, 26 Apr 2026 01:11:30 +0200 Subject: [PATCH] sanitizeName: allow forward slash in display names Sideband/Columba and other LXMF clients commonly include "/" in display names (e.g. handle/path conventions). The allowlist in sanitizeName stripped it, mangling "alice/columba" into "alicecolumba". Saved contacts get re-sanitized on each load (line 393), so existing names also lose the slash on next boot. --- src/reticulum/AnnounceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reticulum/AnnounceManager.cpp b/src/reticulum/AnnounceManager.cpp index ae422bf..1fdf88a 100644 --- a/src/reticulum/AnnounceManager.cpp +++ b/src/reticulum/AnnounceManager.cpp @@ -82,7 +82,7 @@ static std::string sanitizeName(const std::string& raw, size_t maxLen = 16) { for (char c : raw) { if (clean.size() >= maxLen) break; if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || - (c >= '0' && c <= '9') || c == ' ' || c == '-' || c == '_' || c == '.' || c == '\'') { + (c >= '0' && c <= '9') || c == ' ' || c == '-' || c == '_' || c == '.' || c == '\'' || c == '/') { clean += c; } }