aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-12-23 02:09:42 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-12-23 02:09:42 +0100
commite47ce4dcb3d400531c3bfbec8e6a1638a1cf0d62 (patch)
tree09539a74c807234ee2f98602afbbbd158daf31fa
parent9248f8a2f65872884803507dc545daf3f576a255 (diff)
downloadbugzilla-triage-e47ce4dcb3d400531c3bfbec8e6a1638a1cf0d62.tar.gz
fix encodeURIComponent
-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);
}
};