Fix sanitizing the domain causing problems

This commit is contained in:
Owen
2026-04-27 11:50:57 -07:00
parent d1f7a9c6df
commit 512ba2150b
2 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import { Label } from "@app/components/ui/label";
import { useEnvContext } from "@app/hooks/useEnvContext";
import { toast } from "@app/hooks/useToast";
import { createApiClient, formatAxiosError } from "@app/lib/api";
import { finalizeSubdomainSanitize } from "@app/lib/subdomain-utils";
import { UpdateResourceResponse } from "@server/routers/resource";
import { AxiosResponse } from "axios";
import { AlertCircle } from "lucide-react";
@@ -506,7 +507,7 @@ export default function GeneralForm() {
name: data.name,
niceId: data.niceId,
subdomain: data.subdomain
? toASCII(data.subdomain)
? toASCII(finalizeSubdomainSanitize(data.subdomain, true))
: undefined,
domainId: data.domainId,
proxyPort: data.proxyPort

View File

@@ -488,7 +488,7 @@ export default function Page() {
const httpData = httpForm.getValues();
sanitizedSubdomain = httpData.subdomain
? finalizeSubdomainSanitize(httpData.subdomain)
? finalizeSubdomainSanitize(httpData.subdomain, true)
: undefined;
Object.assign(payload, {