diff options
author | Byron Jones <bjones@mozilla.com> | 2011-10-10 09:45:30 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2011-10-10 09:45:30 +0200 |
commit | a11d9df1d1cd61bdef5564caba3d71e8969bfa85 (patch) | |
tree | fb0404988c334741bbe4535ac8249793e52c96b3 | |
parent | 084bca3f0c2e2825ce1c65f8d866eeb4cc3bdc90 (diff) | |
download | bugzilla-a11d9df1d1cd61bdef5564caba3d71e8969bfa85.tar.gz bugzilla-a11d9df1d1cd61bdef5564caba3d71e8969bfa85.tar.xz |
Bug 691211: incorrect encoding used when switching from guided form
-rw-r--r-- | extensions/GuidedBugEntry/web/js/guided.js | 6 |
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 == '') { |