Skip to content

Commit b2d835f

Browse files
authored
Merge pull request #171 from Steve0Greatness/uri-encode-project-name
URI Encode project title
2 parents de21d87 + 992b6f8 commit b2d835f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/menu-bar/share-button.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ class ShareButton extends React.Component {
147147
editPiece = `&id=${id}`;
148148
}
149149

150+
const projectTitle = encodeURIComponent(this.props.projectTitle);
150151
const url = location.origin;
151-
window.open(`https://penguinmod.com/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
152+
window.open(`https://penguinmod.com/${targetPage}?name=${projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
152153
});
153154
}
154155
render() {

0 commit comments

Comments
 (0)