Files
outline/shared/utils
Tom MoorandClaude Opus 5 9f30b033f3 fix: Match base domain on a label boundary when parsing hosts (#13419)
* fix: Match the base domain on a label boundary

Domain parsing looked for the base domain anywhere in the host, so a host
that merely contained it was classified as a subdomain of the install
rather than as a custom domain. Compare against the end of the host
instead, and reuse the same helper for the custom domain CNAME check.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: Normalize host case and trailing root label

Hostnames are case-insensitive and may be given in fully qualified form
with a trailing dot, so normalize both before comparing against the base
domain. Without this a host such as MyTeam.Example.Com is classified as a
custom domain and a valid CNAME target is rejected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-15 13:25:42 -04:00
..
2026-08-10 18:58:54 -04:00
2026-07-28 08:47:09 -04:00
2026-08-15 13:25:10 -04:00
2024-07-07 10:54:19 -04:00
2024-07-07 10:54:19 -04:00
2026-01-05 19:58:46 -05:00
2026-04-18 15:12:57 -04:00
2026-03-25 22:59:57 -04:00
2026-03-25 22:59:57 -04:00
2025-12-03 20:25:12 -05:00
2024-04-10 07:38:32 -04:00