From 4442d76bee4802d8565304a341012ac6fa3f0666 Mon Sep 17 00:00:00 2001 From: Brendan Schlagel Date: Thu, 21 Aug 2025 11:28:22 -0400 Subject: [PATCH] add encodeURIComponent for pub name in a couple places --- app/[leaflet_id]/publish/PublishPost.tsx | 2 +- app/lish/createPub/updatePublication.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/[leaflet_id]/publish/PublishPost.tsx b/app/[leaflet_id]/publish/PublishPost.tsx index a160aad0..7ca8eba5 100644 --- a/app/[leaflet_id]/publish/PublishPost.tsx +++ b/app/[leaflet_id]/publish/PublishPost.tsx @@ -197,7 +197,7 @@ const PublishPostSuccess = (props: {

Published!

Back to Dashboard diff --git a/app/lish/createPub/updatePublication.ts b/app/lish/createPub/updatePublication.ts index 9836ccf1..2f255018 100644 --- a/app/lish/createPub/updatePublication.ts +++ b/app/lish/createPub/updatePublication.ts @@ -88,7 +88,9 @@ export async function updatePublication({ .select() .single(); if (name !== existingPub.name) - return redirect(`/lish/${aturi.host}/${name}/dashboard`); + return redirect( + `/lish/${aturi.host}/${encodeURIComponent(name)}/dashboard`, + ); return { success: true, publication }; } -- 2.54.0