diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index 41494c2f..d75584bd 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; }