aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzillaBugTriage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 793b54f..2f0da6d 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -801,11 +801,11 @@ BzPage.prototype.queryInNewTab = function(text,component,product) {
// using more complicated query tables here, because they can be more easily edited
// for further investigative searches
if (text) {
- text = text.trim();
+ text = encodeURIComponent(text.trim());
url += "&field1-0-0=longdesc&type1-0-0=substring&value1-0-0="+text+
"&field1-0-1=attach_data.thedata&type1-0-1=substring&value1-0-1="+text+
"&field1-0-2=status_whiteboard&type1-0-2=substring&value1-0-2="+text;
- jetpack.tabs.open(encodeURIComponent(url));
+ jetpack.tabs.open(url);
}
};