summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index e3efd6446..a83bf4b1b 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -82,8 +82,8 @@ var guided = {
setAdvancedLink: function() {
href = 'enter_bug.cgi?format=__default__' +
- '&product=' + escape(product.getName()) +
- '&short_desc=' + escape(dupes.getSummary());
+ '&product=' + encodeURIComponent(product.getName()) +
+ '&short_desc=' + encodeURIComponent(dupes.getSummary());
Dom.get('advanced_img').href = href;
Dom.get('advanced_link').href = href;
}
@@ -136,7 +136,7 @@ var product = {
Dom.get('product').value = productName;
Dom.get('product_label').innerHTML = YAHOO.lang.escapeHTML(productName);
Dom.get('dupes_product_name').innerHTML = YAHOO.lang.escapeHTML(productName);
- Dom.get('list_comp').href = 'describecomponents.cgi?product=' + escape(productName);
+ Dom.get('list_comp').href = 'describecomponents.cgi?product=' + encodeURIComponent(productName);
guided.setAdvancedLink();
if (productName == '') {