Encode crosspost url. Fixes #1083 (#1088)

pull/1093/head
Dessalines 2020-08-16 11:05:45 -04:00 committed by GitHub
parent adeba99d38
commit 0a27432b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1223,7 +1223,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
let post = this.props.post; let post = this.props.post;
if (post.url) { if (post.url) {
params += `&url=${post.url}`; params += `&url=${encodeURIComponent(post.url)}`;
} }
if (this.props.post.body) { if (this.props.post.body) {
params += `&body=${this.props.post.body}`; params += `&body=${this.props.post.body}`;