From 0a27432b6567c5ce89f906a60dcc7e499f6948b5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 16 Aug 2020 11:05:45 -0400 Subject: [PATCH] Encode crosspost url. Fixes #1083 (#1088) --- ui/src/components/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 9f991d085..49ec30343 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}`;