URI-encode text searches, resolves #2980 (#2982)

This commit is contained in:
Leigh Johnson 2016-07-13 13:55:12 -04:00 committed by GitHub
parent 9965ec01be
commit 5c32b17aea

View File

@ -182,7 +182,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
this.getTag = function(field, textVal, selectVal) {
var tag = _.clone(field);
if (tag.type === "text") {
tag.url = tag.value + "__icontains=" + textVal;
tag.url = tag.value + "__icontains=" + encodeURIComponent(textVal);
tag.name = textVal;
} else if (selectVal.value && typeof selectVal.value === 'string' && selectVal.value.indexOf("=") > 0) {
tag.url = selectVal.value;