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/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/%7Bthis.imageSrc.unwrap%28%29%7D?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}`;