Skip to content

fix(livechat): prevent whitespace-only values in Name, Description and Message#1

Open
Codersintu wants to merge 220 commits into
developfrom
fix/whitespace-validation
Open

fix(livechat): prevent whitespace-only values in Name, Description and Message#1
Codersintu wants to merge 220 commits into
developfrom
fix/whitespace-validation

Conversation

@Codersintu
Copy link
Copy Markdown
Owner

Fixes RocketChat#38512

Problem

Whitespace-only values were accepted in Name, Description, and Message fields.

Solution

  • Added validation to prevent leading/only whitespace
  • Treated whitespace-only strings as empty

Result

Users cannot save invalid triggers.

Testing

  • " " → rejected
  • "hello world" → accepted

juliajforesti and others added 30 commits December 23, 2025 18:25
Co-authored-by: Tasso <tasso.evangelista@rocket.chat>
…ion access (RocketChat#37965)

Co-authored-by: Diego Sampaio <chinello@gmail.com>
KevLehman and others added 30 commits February 10, 2026 18:06
…ketChat#38379)

Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com>
…tChat#38579)

Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com>
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
)

Co-authored-by: Kevin  Aleman <kaleman960@gmail.com>
)

Co-authored-by: ggazzo <guilherme@gazzo.xyz>
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Omnichannel → Livechat Triggers: Whitespace-only values accepted in Name, Description and Message fields