Verification email garbles the user's name when a dot is followed by a digit
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start with apps/meteor/lib/utils/safeHtmlDots.ts and find its unit tests. Check how safeHtmlDots handles a dot followed by a digit, then add the suggested complete numeric reference and a regression test for a name such as Bot 2.0. Done means the verification greeting preserves the one-dot-leader and the following digit, with the relevant unit test passing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description:
The email-verification message greets the user with Hi [name] (default Verification_Email template). Before substitution, the name goes through safeHtmlDots (apps/meteor/lib/utils/safeHtmlDots.ts), which replaces every . with ․ — a numeric character reference without the terminating ;.
Browsers and mail clients read a numeric reference up to the last consecutive digit, so when a dot is followed by a digit, that digit is absorbed into the code point. A name like Bot 2.0 becomes Bot 2𔅨, which renders as Bot 2 (U+14168): the dot and the 0 are replaced by an unrelated glyph. The same goes for [fname] / [lname], which are derived from the already-processed name.
Dots followed by letters (J.Smith) still render, but only because HTML parsers tolerate the missing ; (a parse error per the HTML spec).
Steps to reproduce:
With SMTP configured, enable the Accounts_EmailVerification setting (Administration → Settings → Accounts).
Register a user whose name contains a dot followed by a digit, e.g. Bot 2.0 or Release 9.1 Bot.
Open the verification email.
Equivalent minimal check: open an HTML page containing Bot 2𔅨 (what safeHtmlDots('Bot 2.0') returns).
Expected behavior:
The greeting reads Hi Bot 2․0 (dot still shown as the one-dot-leader that keeps mail clients from auto-linking it).
Actual behavior:
The greeting reads Hi Bot 2.
Server Setup Information:
Version of Rocket.Chat Server: develop @ 9211f6ccd3 (code unchanged since 2023)
Additional context
Suggested fix: emit the complete reference, ․, in safeHtmlDots, with a unit test covering a dot followed by a digit.
- Lingua principale
- TypeScript
- Stelle
- 46.6k
- Fork
- 14.2k
- Merge medio
- 2g 21h
- PR unite (30g)
- 302
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/Rocket.Chat
-
ModerationConsoleTable renders blank area instead of error state when query failsForse già presa @Siddharth-singh18 l’ha presa 2 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
RocketChat/Rocket.Chat#44109 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Composer clears message text when the first uploaded file's media confirmation failsForse già presa @Sravan-0802 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RocketChat/Rocket.Chat#44087 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Subsequent OAuth logins overwrite persisted service fields (e.g. refreshToken) with nullForse già presa @ayushbuilds-code l’ha presa 4 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/Rocket.Chat#44053 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Custom OAuth callback times out when Merge roles from SSO is enabledForse già presa @Pantkartik l’ha presa 6 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RocketChat/Rocket.Chat#44005 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Heads-up: Issue Dedupe workflow pins claude-sonnet-4-5-20250929, which Anthropic retires Nov 30Forse già presa @Ravichandra531 l’ha presa 6 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
RocketChat/Rocket.Chat#43944 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/Rocket.Chat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zabuton-app/meguri#875 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
iruzen-dono/workless#117 ·
I maintainer di solito rispondono entro 1 giorno
-
area:api area:web wave wave:trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vetro-protocol/vetro-monorepo#1321 ·
I maintainer di solito rispondono entro 1 giorno