From f9eeabb2f9963f9fbafd0c7fe0f2f5d9304975ef Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 2 Feb 2021 12:18:18 -0500 Subject: [PATCH] Fixing uri protected params getting clipped from cross posts. Fixes #141 --- src/shared/components/post-listing.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index 41494c2..d75584b 100644 --- a/src/shared/components/post-listing.tsx +++ b/src/shared/components/post-listing.tsx @@ -1260,13 +1260,13 @@ export class PostListing extends Component { get crossPostParams(): string { let post = this.props.post_view.post; - let params = `?title=${post.name}`; + let params = `?title=${encodeURIComponent(post.name)}`; if (post.url) { params += `&url=${encodeURIComponent(post.url)}`; } if (post.body) { - params += `&body=${post.body}`; + params += `&body=${encodeURIComponent(post.body)}`; } return params; } -- 2.44.1