Merge pull request #1914 from joker314/patch-1

Fix search bar's handling of special characters
This commit is contained in:
Ray Schamp 2018-06-04 10:53:58 -04:00 committed by GitHub
commit 05a47da8ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ class Search extends React.Component {
while (term.indexOf('&') > -1) {
term = term.substring(0, term.indexOf('&'));
}
term = decodeURI(term.split('+').join(' '));
term = decodeURIComponent(term.split('+').join(' '));
this.props.dispatch(navigationActions.setSearchTerm(term));
}
componentDidUpdate (prevProps) {