From: Dessalines Date: Sun, 16 Aug 2020 15:05:45 +0000 (-0400) Subject: Encode crosspost url. Fixes #1083 (#1088) X-Git-Url: http://these/git/%22https:/image.com/readmes/%22%7Burl%7D/%7B?a=commitdiff_plain;h=0a27432b6567c5ce89f906a60dcc7e499f6948b5;p=lemmy.git Encode crosspost url. Fixes #1083 (#1088) --- diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 9f991d08..49ec3034 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -1223,7 +1223,7 @@ export class PostListing extends Component { let post = this.props.post; if (post.url) { - params += `&url=${post.url}`; + params += `&url=${encodeURIComponent(post.url)}`; } if (this.props.post.body) { params += `&body=${this.props.post.body}`;