Encode term from search view's search bar

Same fix as , but for the form on the search page.
This commit is contained in:
Ray Schamp 2017-02-20 11:08:05 -05:00
parent d6093f19b0
commit 0313346fed

View file

@ -76,7 +76,7 @@ var Search = injectIntl(React.createClass({
}.bind(this));
},
onSearchSubmit: function (formData) {
window.location.href = '/search/projects?q=' + formData.q;
window.location.href = '/search/projects?q=' + encodeURIComponent(formData.q);
},
getTab: function (type) {
var term = this.props.searchTerm.split(' ').join('+');