test(cabana): unsafe Branding site names refused at save, stored ones never block saves or sends

- TestMailSiteNameSafety: a javascript: site name is a 422 on site_name in en
  and pl and stores nothing; Big Data: Summit and Metadata: Weekly save; the
  Branding preview drops an unsafe draft name; a name stored before the check
  never refuses a template or layout save or stops a send; a mail.from display
  name with a colon shows on the default and system layouts
- the mail screens env reads mail.from from its configuration (default
  unchanged), so a mutate hook can set the sender
- check-phase35.sh DOCKER_TESTS requires TestMailSiteNameSafety
This commit is contained in:
Jakub Zych
2026-11-14 15:56:18 +01:00
parent 446a77efbf
commit 54617f78d1
3 changed files with 184 additions and 2 deletions

View File

@@ -129,6 +129,7 @@ DOCKER_TESTS=(
./modules/cabana:TestMailLocaleGroups
./modules/cabana:TestMailBrandSiteName
./modules/cabana:TestMailLayoutInlineOptOut
./modules/cabana:TestMailSiteNameSafety
)
# admin stage: vitest files that must pass.