From 5c32b17aeadde7719a0b94f459a2aa3ba1e8e5d7 Mon Sep 17 00:00:00 2001 From: Leigh Johnson Date: Wed, 13 Jul 2016 13:55:12 -0400 Subject: [PATCH] URI-encode text searches, resolves #2980 (#2982) --- awx/ui/client/src/search/tagSearch.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/search/tagSearch.service.js b/awx/ui/client/src/search/tagSearch.service.js index 6b02b8fdf8..b340b5d8c3 100644 --- a/awx/ui/client/src/search/tagSearch.service.js +++ b/awx/ui/client/src/search/tagSearch.service.js @@ -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;